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

ccictl rollout undo

Scenario

Roll back to a previously released version.

ccictl rollout undo (TYPE NAME | TYPE/NAME) [flags]

Examples

# Roll back the Deployment to the previous status.
ccictl rollout undo deployment/abc

# Roll back to Deployment revision 3.
ccictl rollout undo deploy/abc --to-revision=3

Options

--allow-missing-template-keys     Default: true

If the value is true, the error in the template is ignored when a field or mapping key is missing in the template. This option applies only to the Golang and JSONPath output formats.

-f, --filename strings

List of file names, directories, or file URLs, which are used to identify the resource to be obtained from the server.

-h, --help

Help information for rollout undo

-o, --output string

Output format. The value options include json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, and jsonpath-file.

-R, --recursive

Process the directory used in -f or --filename recursively. This option is useful when you want to manage related manifests organized within the same directory.

-l, --selector string

Selector used for filtering (label query). The value can be =, ==, or !=, for example, -l key1=value1,key2=value2. Matched objects must meet all specified label constraints.

--template string

Template character string or template file path used when -o is set to go-template or go-template-file. The Golang template format is [http://golang.org/pkg/text/template/#pkg-overview].

--to-revision int

Revision version to be rolled back to. The default value is 0 (latest revision version).

The following ccictl options can also be used in subcommands:

Parent command options