autodisc

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 --help

Common Commands

autodisc login
autodisc init
autodisc deploy
autodisc status
autodisc logs --follow
autodisc metrics --watch

Hosting 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 5

Scriptable Output

Use --json when another command or agent is consuming output:

autodisc status --json
autodisc logs --tail 100 --json
autodisc metrics --json

With --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 write autodisc.yml.
  • autodisc deploy: deploy the current project using autodisc.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.

On this page