Run the CLI
ACI starters install theaci binary through @gradial/aci. Check the project-local version with:
aci for readability. From a project where the binary is not already on your shell path, prefix a command with npm exec --:
Command map
aci <command> --help for the flags available in your installed SDK.
Global options
Hosted commands use your organization’s ACI API URL and access token. Set them in the environment to avoid placing credentials in shell history:
Create a project
aci init
Create an Astro site with sample content:
--with-starter-content adds sample content, components, assets, and stories; without it, the project starts with empty registries and the required integration structure.
Develop locally
aci dev
Compile local content, watch it for changes, and run the configured framework development server:
npm run dev script is the usual entrypoint for a starter project.
Work with content
aci content compile
Compile authored content into the generated local output:
aci content validate
Validate content structure and, when run inside a configured site, component prop schemas:
aci validate
Validate the coherence of the complete content snapshot for the configured site. Every content document is parsed and checked against the project’s contracts, and referenced assets are resolved:
--format json for machine-readable output.
aci content pull
Pull a branch’s content into the local content directory:
aci content diff
Compare local content with a remote branch before pushing:
aci content push
Preview the changes that would be sent to a content branch:
--files for a targeted initial seed or update. Repeat the option as needed and review a dry run first:
Work with branches
ACI branches isolate content and its linked code while work is in progress. Landing a reviewed branch updatesmain, the approved content trunk. It does not put the change live.
Inspect and create branches
Rebase and land
Read the branch and target state first, then pass the observed heads when you rebase or land. These checks prevent an update from silently overwriting newer work.Other branch operations
For normal local authoring,
content pull, file edits, content diff, and content push provide the clearest workflow. Use changes and patch for structured integrations that already manage branch concurrency.
Build code for a branch
aci code-build
Build the current Git state and link the resulting code to a non-main content branch:
--folder if the CLI cannot infer the site directory:
Promote approved content
Landing and publishing are separate operations:aci drift
List paths whose approved state on main differs from their published state on live:
aci promote
Preview a path-scoped promotion:
--yes is required to apply the promotion.
Stage and activate releases
Promotion updates the publishable content state. Release commands build that state into an immutable release, give you a preview to review, and then make the approved release live.aci release publish
Stage a release:
--activate to stage and activate in one step. Keep the steps separate when the release needs review at its preview URL before activation.
aci release status
Check a staged release:
aci release activate
After reviewing the preview, activate the staged release with the active state returned by release publish:
--expected-release "" when it is empty.
aci release rollback
Switch the whole site back to a previous release:
Use
aci promote with an older source when you need to roll back selected content paths. Use aci release rollback when you need to switch the complete site to an earlier release.Manage asset binaries
Thedam commands move asset binaries. Asset metadata remains part of the content tree and follows the normal branch workflow.
aci dam <command> --help to inspect the file and asset arguments supported by your installed CLI.
Recommended workflows
Local frontend change
Content branch
Approved change to production
Next: Agent-ready projects →