CLI
Authentication, deployment, logs, and metrics from the terminal.
The Autodisc CLI provides authentication, deployment, hosting operations, logs, and resource metrics from a terminal.
Install
The CLI is not yet published to npm. Until release, build it from the Autodisc repository:
npm install
npm run cli:build
node packages/cli/dist/index.js --helpCommon Commands
autodisc login
autodisc init
autodisc deploy
autodisc status
autodisc logs --follow
autodisc metrics --watchHosting Metrics
autodisc metrics shows the current hosting server, live CPU and memory readings, and the most recent deployment status.
autodisc metrics
autodisc metrics --watch
autodisc metrics --watch --interval 5Scriptable Output
Use --json when another command or agent is consuming output:
autodisc status --json
autodisc logs --tail 100 --json
autodisc metrics --jsonWith --watch, autodisc metrics --json prints newline-delimited JSON snapshots. With --follow, autodisc logs --json prints newline-delimited log snapshots.
Core Reference
autodisc login/logout/whoami: authenticate with device flow, browser flow, or token; inspect or clear the session.autodisc init: analyze the current project and writeautodisc.yml.autodisc deploy: deploy the current project usingautodisc.yml.autodisc status [--json]: show the current hosting server state.autodisc logs [--tail 200] [--follow] [--json]: fetch or stream recent logs.autodisc metrics [--watch] [--interval 2] [--json]: show CPU, memory, and latest deploy status.autodisc env [set|unset|pull|push]: manage environment variables.autodisc start|stop|restart|delete: operate on the current hosting server.autodisc config/config:get <path>/config:set <path> <value>: view and edit CLI configuration.