aci command-line interface is the developer entrypoint for ACI sites. It validates the frontend contract, compiles content, runs framework development servers, syncs content, and calls branch and DAM APIs.
Installation
Design partner starters install@gradial/aci as a project dependency. Use the starter scripts first:
Global Flags
| Flag | Description |
|---|---|
-s, --site-dir | Site directory containing .aci.yaml |
-d, --domain | Site domain override |
-v, --verbose | Enable verbose output |
-h, --help | Help for any command |
--version | Print CLI version |
Commands
Local Development
aci doctor
Checks local site configuration and tooling.
.aci.yamlis discovered and validversion,siteId, andframeworkare valid- Component registry, layout registry, and renderer entry exist
- The renderer exports a
GradialRenderer - Node.js and npm are available
- Framework-specific requirements, such as Next.js catch-all routes, are present
.aci/registry.jsoncan be compiled and loaded
aci build
Compiles content and builds the configured framework site.
| Flag | Description |
|---|---|
--compile-only | Only compile component/layout registries to JSON Schema |
--validate-only | Only validate local content against schemas |
--content <dir> | Source content directory |
--out <dir> | Compiled content output directory |
--skip-code | Skip the framework build after content compilation |
--skip-content | Skip content compilation before the framework build |
aci dev
Runs the configured framework development server with ACI content environment variables.
| Flag | Description |
|---|---|
--port <port> | Framework dev server port override |
--ws-port <port> | Dev refresh websocket port; set 0 to disable |
aci dev compiles registries if needed, sets ACI_CONTENT_ROOT, starts a local /aci-dev websocket for content refresh notifications, and then runs the framework’s npm run dev.
Content Commands
aci content pull
Pulls content from the hosted API or directly from S3 into a local content directory.
| Flag | Description |
|---|---|
--out <dir> | Output directory; defaults from config or .content |
--branch <name> | Content branch to pull; defaults to main |
--force | Overwrite an existing content directory |
--api-url <url> | ACI API base URL |
--token <token> | API bearer token |
--s3-bucket <bucket> | Enables S3 direct mode |
--s3-region <region> | S3 region |
--s3-endpoint <url> | S3-compatible endpoint, such as MinIO |
--repo-id <id> | Repository ID for S3 mode |
aci content clone
Clones a path-scoped API content workspace.
--path is required and can be repeated.
aci content push
Pushes local content workspace changes through the API.
Branch Commands
Branch commands call the ACI API. They default tohttp://localhost:8080 and token dev-user, or you can pass --api-url and --token.
aci branch list
aci branch create
aci branch get
aci branch changes
Applies explicit JSON changes to a branch.
aci branch patch
Applies an RFC 6902 JSON patch to one content file.
aci branch link-code
Patches /config/site.json to point at a code artifact.
aci branch rebase
aci branch land
Squash-lands a branch into the target branch.
DAM Commands
DAM commands call the ACI API and use the signed upload/download flow.aci dam upload
Uploads a new DAM asset binary.
aci dam upload-version
Uploads a new immutable binary version for an existing asset.
aci dam download
Downloads a DAM asset original.
Environment Variables
| Variable | Description |
|---|---|
ACI_API_URL | Default API URL for API-backed content, branch, and DAM commands |
ACI_API_TOKEN | Default API bearer token |
ACI_DEV_WS_PORT | Dev refresh websocket port; set 0 to disable |
ACI_DISABLE_CONTENT_WATCH | Set to 1 to disable local content watch broadcasts |
ACI_S3_BUCKET | Default S3 bucket for direct content pull |
ACI_S3_REGION | Default S3 region for direct content pull |
ACI_S3_ENDPOINT | S3-compatible endpoint for direct content pull |
ACI_REPO_ID | Repository ID for S3 direct content pull |
AWS_ACCESS_KEY_ID | S3 access key for direct content pull |
AWS_SECRET_ACCESS_KEY | S3 secret key for direct content pull |
Typical Workflows
Local Starter Development
Validate Before Commit
API Content Workspace
Next: Quickstart →