# URBANopt Cli This is the command line interface (CLI) for URBANopt. ## Installation Add this line to your application's Gemfile: ```ruby gem 'urbanopt-cli' ``` And then execute: ```terminal bundle ``` Or install it yourself with: ```terminal gem install urbanopt-cli ``` ## Usage For help text in your terminal, type: ```terminal uo --help ``` Create a project folder: ```terminal uo create --project-folder ``` Overwrite an existing project folder: ```terminal uo create --overwrite --project-folder ``` Create an empty project folder without the example files: ```terminal uo create --empty --project-folder ``` Create ScenarioFiles from a FeatureFile using MapperFiles: ```terminal uo create --scenario-file ``` Create a ScenarioFile using only a specific FEATURE_ID from a FEATUREFILE: ```terminal uo create --scenario-file --single-feature ``` Create a REopt ScenarioFile from an existing ScenarioFile: ```terminal uo create --reopt-scenario-file baseline_scenario.csv ``` Run URBANopt energy simulations for each feature in your scenario: ```terminal uo run --scenario --feature ``` Run URBANopt energy simulations for each feature in your scenario, with REopt functionality included: ```terminal uo run --reopt --scenario --feature ``` Post-process simulations for a full scenario: ```terminal uo process -- --scenario --feature ``` - Valid `TYPE`s are: `default`, `opendss`, `reopt-scenario`, `reopt-feature` Delete a scenario you have already run: ```terminal uo delete --scenario ``` Installed CLI version: ```terminal uo --version ``` ## Development To install this gem onto your local machine, clone this repo and run `bundle exec rake install`. If you make changes to this repo, update the version number in `lib/version.rb` in your first commit. When ready to release, [follow the documentation](https://docs.urbanopt.net/developer_resources/release_instructions.html).