Scaleway logo
Commands

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:

TerminalCode
scw alias create <alias ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
aliasAlias nameRequired
commandCommand to create an alias for

Examples:

Create a custom alias 'isl' for 'instance server list'

TerminalCode
scw alias create isl command="instance server list""

Add an alias to a verb

TerminalCode
scw alias create c command=create

Delete an alias

Usage:

TerminalCode
scw alias delete <alias ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
aliasalias name

List aliases and their commands

Usage:

TerminalCode
scw alias list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byDefault: command_asc
One of: command_asc, command_desc, alias_asc, alias_desc
commandfilter command
aliasfilter alias