README.md in cloudstack-cli-1.5.13 vs README.md in cloudstack-cli-1.6.0
- old
+ new
@@ -15,11 +15,12 @@
## Setup
### Create a cloudstack-cli environment
-cloudstack-cli expects to find a configuration file with the API URL and your CloudStack credentials in your home directory named .cloudstack-cli.yml. If the file is located elsewhere you can specify the location using the --config option.
+cloudstack-cli expects to find a configuration file with the API URL and your CloudStack credentials in your home directory named .cloudstack.yml (or .cloudstack-cli.yml).
+If the file is located elsewhere you can specify the location using the --config-file option.
*Create your initial environment, which defines your connection options:*
```bash
$ cloudstack-cli setup
@@ -46,20 +47,26 @@
*List all environments:*
see `cloudstack-cli help environment` for more options.
-Example content of the configuration file:
+Example configuration file:
```yaml
-:url: "https://my-cloudstack-server/client/api/"
-:api_key: "cloudstack-api-key"
-:secret_key: "cloudstack-api-secret"
+# default environment
+:default: production
+# production environment
+production:
+ :url: "https://my-cloudstack-server/client/api/"
+ :api_key: "cloudstack-api-key"
+ :secret_key: "cloudstack-api-secret"
+
+# test environment
test:
- :url: "http://my-cloudstack-testserver/client/api/"
- :api_key: "cloudstack-api-key"
- :secret_key: "cloudstack-api-secret"
+ :url: "http://my-cloudstack-testserver/client/api/"
+ :api_key: "cloudstack-api-key"
+ :secret_key: "cloudstack-api-secret"
```
### Shell tab auto-completion
To enable tab auto-completion for cloudstack-cli, add the following lines to your ~/.bash_profile file.