Skip to content

alta rollback ​

Goes back to an earlier revision of a release (the one before by default): a new revision with its version, values and files, kept on this machine when it was installed; prints the plan, runs it with --yes.

Usage ​

text
alta rollback <chart> [<revision>] [--yes] [--replace-edited] [--server <url>] [--timeout <s>]

Arguments ​

NameDescription
chartrequiredThe id of an installed chart.
revisionoptionalThe revision to go back to (alta status --history <chart>); default: the one before the current.

Options ​

NameTypeDefaultDescription
--yesflagThe owner's yes: run the changes planned. Without it, nothing changes.
--replace-editedflagGo on when files of its agents were edited since they were installed: they go to the archive, then this version's files are written.
--serverstringDefault: http://127.0.0.1:8790The machine's server. Its token comes from the WORLD_TOKEN environment variable, never from an argument.
--timeoutnumberDefault: 600Seconds to wait for each change.

Exit codes ​

NameDescription
0ok
1problems found
2bad usage
3not in this version

Examples ​

The plan, nothing changed

Terminal
sh
alta rollback morning-brief

Talks to the machine's server (WORLD_TOKEN set): it prints the plan, then each change and the proofs.

Go back to revision 1

Terminal
sh
alta rollback morning-brief 1 --yes

Talks to the machine's server (WORLD_TOKEN set): it prints the plan, then each change and the proofs.

Alta OS is open source (MIT).