CLI reference
Use the CLI to develop, deploy, configure, and operate an App. Start with the
quick start for installation, or run cantelop --help
for the command overview.
Project#
Project commands read cantelop.json and resolve its App slug. Use
-config PATH when the manifest is elsewhere. Paths in the manifest are
relative to that file.
For the optional Dockerfile and its build context, see Session runtime configuration.
cantelop init -app SLUG -provider openai|claude|picreates the manifest, API and Session entrypoints, and package file. The provider is required. It needs no login and refuses to overwrite files.cantelop devserves the App at127.0.0.1:8787and rebuilds after edits.-portchanges the port,-env-filechooses a local environment file, and--containerruns Sessions in Docker. Restart container mode after edits.cantelop buildbuilds the API bundle and Linux runtime image locally. It does not require login or upload anything.cantelop doctorchecks the toolchain, project, authentication, and required production configuration. It runs every check and exits non-zero on failure.cantelop deploybuilds, uploads, and creates a release.--dry-runstops after the build;--create-appallows creation of a missing App without an interactive prompt.
Operations#
These commands use the App named in the manifest and accept --json.
logs --follow --json emits one event per line; finite commands return one
document.
cantelop logs --followtails completed-request events with status, duration, Session, and Workspace. Omit--followfor a single read.cantelop session listlists Sessions and their states.cantelop session inspect SESSION_IDshows one Session's details.cantelop session terminate SESSION_IDreleases its Sandbox. The Session remains reusable and Workspace files persist.cantelop releaseslists releases newest first.cantelop rollbackactivates the newest superseded release. It refuses to race a deployment still being provisioned.
Resources#
Resource commands take generated App IDs instead of using the project manifest.
cantelop app listlists your Apps and their IDs.cantelop app inspect APP_IDshows an App, its Workspaces, and active release.cantelop app create -slug SLUGcreates an App athttps://<slug>.cantelop.dev.cantelop app archive APP_IDremoves the App and its Workspaces from product reads and queues cleanup. Local project files remain untouched.cantelop app env set APP_ID NAME=VALUEsets a variable. Useenv list APP_IDto read values andenv unset APP_ID NAMEto remove one.cantelop app secret set APP_ID NAMEreads a secret from stdin. Usesecret list APP_IDto list names andsecret unset APP_ID NAMEto remove one. Values are never returned.cantelop app deploy APP_ID -image IMAGE -artifact DIRECTORYdeploys artifacts built by your own automation.
Variables and secrets are shared by the API and newly started Sessions. See environments for local defaults and production checks.
Account#
cantelop loginopens browser authorization and stores the CLI credential with mode0600.-console ORIGINselects another console;CANTELOP_CONFIGoverrides the credential file path.cantelop versionprints the CLI version and source commit.-vis an alias.cantelop --helpshows command groups and common examples.helpand-hare aliases.