Skip to content

Commit 5fe5af6

Browse files
authored
Merge pull request #181 from gridscale/feat/document-config-flag
Document --config flag explicitly in README
2 parents 8192cf5 + 17b6a03 commit 5fe5af6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,19 @@ projects:
4646
url: https://api.gridscale.io
4747
```
4848
49+
You can specify a custom location for the config file by using the `--config` flag, which
50+
allows you to keep multiple configs per project or environment. For example:
51+
52+
```shelld
53+
gscloud --config production.yml info
54+
gscloud --config staging.yml info
55+
```
56+
4957
Following environment variables can also be used instead of config file:
5058
- `GRIDSCALE_UUID` - corresponds to `userId`
5159
- `GRIDSCALE_TOKEN` - corresponds to `token`
5260
- `GRIDSCALE_URL` - corresponds to `url`
61+
5362
**Note**: If the config file and the environment variables are used at the same time, the config file will be ignored and the environment variables will be used.
5463

5564
## Kubernetes

0 commit comments

Comments
 (0)