Documentation for `scw alias`
The CLI documentation pages are currently under construction
The content is up to date. We're making improvements to the site over the next few weeks for a better experience.
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 " will complete as "scw instance server list " "scw " will complete "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:
Code
Args:
| Name | Description | |
|---|---|---|
| alias | Required | Alias name |
| command | Command to create an alias for |
Examples:
Create a custom alias 'isl' for 'instance server list'
Code
Add an alias to a verb
Code
Delete an alias
Usage:
Code
Args:
| Name | Description | |
|---|---|---|
| alias | alias name |
List aliases and their commands
Usage:
Code
Args:
| Name | Description | |
|---|---|---|
| order-by | Default: command_ascOne of: command_asc, command_desc, alias_asc, alias_desc | |
| command | filter command | |
| alias | filter alias |