mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat(cli): add --var shorthand for --variable (#8710)
`--variable` is used frequently enough to deserve a shorthand. Unfortunately, `-v` is taken by verbose, and `-V` is too easily confused with version or verbose, so we're left with "--var".
This commit is contained in:
@ -22,8 +22,8 @@ This template provisions a [code-server](https://github.com/coder/code-server) i
|
||||
|
||||
```bash
|
||||
coder templates create fly-docker-image \
|
||||
--variable fly_api_token=$(flyctl auth token) \
|
||||
--variable fly_org=personal
|
||||
--var fly_api_token=$(flyctl auth token) \
|
||||
--var fly_org=personal
|
||||
```
|
||||
|
||||
> If the Coder server is also running as a fly.io app, then instead of setting variable `fly_api_token` you can also set a fly.io secret with the name `FLY_API_TOKEN`
|
||||
|
Reference in New Issue
Block a user