Documentation for scw alias
This namespace allows you to manage your aliases Aliases are store in cli config file, Default path for this configuration file is based on the following priority order:
- $SCW_CLI_CONFIG_PATH
- $XDG_CONFIG_HOME/scw/cli.yaml
- $HOME/.config/scw/cli.yaml
- $USERPROFILE/.config/scw/cli.yaml
You can use multiple aliases in one command
aliases in your commands are evaluated and you get completion
with: isl = instance server list
"scw isl
Create a new alias for a command
This command help you create aliases and save it to your config
This command help you create aliases and save it to your config
Usage:
scw alias create <alias ...> [arg=value ...]
Args:
Name | Description | |
---|---|---|
alias | Required | Alias name |
command | Command to create an alias for |
Examples:
Create a custom alias 'isl' for 'instance server list'
scw alias create isl command="instance server list""
Add an alias to a verb
scw alias create c command=create
Delete an alias
Usage:
scw alias delete <alias ...> [arg=value ...]
Args:
Name | Description | |
---|---|---|
alias | alias name |
List aliases and their commands
Usage:
scw alias list [arg=value ...]
Args:
Name | Description | |
---|---|---|
order-by | Default: command_asc One of: command_asc , command_desc , alias_asc , alias_desc |
|
command | filter command | |
alias | filter alias |