User Defined Aliases
Alias commands enable you to add and list user defined shortcuts.
Alias commands can only be used in the interactive and scripting modes.
In order to persist the aliases you need to add \alias add
statements in the $CLC_HOME/shell.clc
script. shell.clc
script is sourced when CLC starts in the interactive mode.
Usage:
clc alias [command]
clc alias add
Add an alias with the given name and command.
Usage:
-- for command
\alias add {ALIAS-NAME} -- {\\COMMAND}
-- for SQL
\alias add {ALIAS-NAME} -- {SQL}
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Required |
Name of the alias. |
|
|
Required |
Examples:
-
Adds an alias to list maps in the cluster:
clc alias add list-maps -- \\object list map
-
Adds an alias to query SQL:
clc alias add first-five-desserts -- select name from desserts order by name limit 5;