Open with AI
CLI Guide
@atmyapp/cli is the command-line workflow for local AtMyApp projects.
Install
Section titled “Install”npm install -g @atmyapp/cliatmyapp use
Section titled “atmyapp use”Stores the project URL and CLI token for the current workspace.
atmyapp use --token cli_... --url https://edge.atmyapp.com/projects/your-project-idatmyapp init
Section titled “atmyapp init”Creates starter project files. The default output is atmyapp.schema.ts.
atmyapp initatmyapp init --template emptyatmyapp init --template minimalatmyapp init --template blogatmyapp init --path atmyapp.schema.jsonatmyapp init --forceThe minimal and blog templates can also help create a project API key and print environment variables for runtime access.
atmyapp migrate
Section titled “atmyapp migrate”Finds a canonical schema file, validates it, generates .ama/definitions.json, and uploads it unless --dry-run is set.
atmyapp migrateatmyapp migrate --dry-run --verboseThe CLI looks for atmyapp.schema.* and ama.schema.*. If both exist, atmyapp.schema.* wins.
File commands
Section titled “File commands”Upload local files to project storage:
atmyapp upload "content/**/*" --base-path content --commit "Update content"Generate a placeholder file for a project storage path:
atmyapp generate --path content/settings.json