Updated on 2025-04-03 GMT+08:00

ccictl config rename-context

Scenario

Rename the context in the cliconfig file.

  • CONTEXT_NAME indicates the name of the context to be changed.
  • NEW_NAME indicates the new name to be set.
  • Note: If the context to be renamed is the current context, this field will be updated.
ccictl config rename-context CONTEXT_NAME NEW_NAME

Examples

# Rename the context (from old-name to new-name) in the cliconfig file.
ccictl config rename-context old-name new-name

Options

-h, --help

Help information for rename-context

The following ccictl options can also be used in subcommands:

Parent command options