snapshot
Export and import the whole configuration of your AI Agent. snapshot uses the same engine as the Snapshot API. Use it to back up a configuration, keep it in git, or copy it from one instance to another.
Commands
Examples
Export the configuration to a folder that you keep in git:
Show what an import would change, and write nothing:
Import only the Playbooks. Check the import first with the same --include, then apply it with no question:
The import replaces the Playbooks section. It also adds or updates each item that a Playbook uses from another section, such as a variable or an API tool. It deletes nothing in those other sections.
Give a secret value that the export listed. Read the value from a shell variable, so the value is not in your command history:
Other programs on the computer can read the arguments of a running command. Run the import only on a computer that you trust.
Copy the configuration to a staging instance. Check the import first:
Details
- An export always takes the whole AI Agent.
--includeselects sections at import only. What a snapshot includes lists the sections. - An import replaces each section that it imports. In that section, it deletes each item that the snapshot does not have. Read the delete counts before you apply.
- An import first checks the snapshot. If the check finds a blocker, adacli stops and lists each blocker.
- An import asks before it applies the snapshot. Outside a terminal, add
--confirm. - An export lists the names of the secret values that the snapshot needs. Give each value at import with
--secret NAME=VALUE. - You need the Admin or Owner role to import a snapshot.
- adacli stops waiting for a job after 30 minutes. The job continues on the server.
For every option of a command, run it with --help, for example adacli acme snapshot import --help.
Related commands
changesets: make and test changes before they go live.knowledge: change one article without a full import.playbooks: change one Playbook without a full import.