Skip to content

Reoclo CLI

The reoclo CLI is the terminal-native interface to your Reoclo organization. Trigger deploys, tail logs, exec commands on servers, manage applications and secrets, generate Docker registry credentials, and wire your dashboard to AI assistants, all from a single binary that runs on macOS, Linux, and Windows.

  • Install: Homebrew, install script, or binary download
  • Getting Started: reoclo login, your first deploy, common workflows
  • CI/CD Automation: non-interactive auth via OAuth client credentials for pipelines
  • MCP Server: expose the CLI as a Model Context Protocol server for Claude, Cursor, and other AI assistants
  • Upgrading: when to upgrade, breaking changes, version pinning

Every CLI subcommand has a dedicated reference page documenting its flags, examples, and exit codes:

DomainCommands
Identitylogin, logout, whoami, profile, keyring
Infrastructureservers, apps, groups (stacks), deployments
Operationslogs, exec, shell, env, secrets, run, domains, status-pages
Toolingmcp, upgrade, completion

The CLI honors a few env vars across every command:

Env varPurpose
REOCLO_ROOT_DOMAINSwitch the CLI between environments: reoclo.com (prod, default), reoclo.dev (staging), reoclo.test (local HTTPS dev)
REOCLO_API_URLOverride just the API URL (wins over REOCLO_ROOT_DOMAIN)
REOCLO_AUTH_URLOverride just the auth URL
REOCLO_OUTPUTDefault output format (table, json, yaml, tsv)
REOCLO_PROJECT_DIRDirectory the .reoclo search starts from. Set it to opt out of a .reoclo that sits above your working directory

Per-command flags like --api, --auth, and --output still take precedence over the env vars.

If the CLI gets no response from the API, it shows the request that failed and the reason:

Error: network error: GET https://api.reoclo.com/mcp/auth/me: the server closed the connection before responding
No response after 3 attempts. Check your network connection, or run with --verbose to see each request.

When the connection closes before a response, the CLI sends a read request (GET) again, up to 3 attempts in total. The CLI does not send a request that changes data (POST, PUT, PATCH, DELETE) again, because the server can have applied it already.

Sometimes the connection closes during the server’s answer to a change. The error then tells you that the server can have applied the change. Check the result before you run the command again.

To see each request, add --verbose before the command:

Terminal window
reoclo --verbose whoami

The CLI writes each request, its headers, and the result to stderr. It replaces credentials with [redacted].

Every command supports --help for inline documentation:

Terminal window
reoclo --help
reoclo servers --help
reoclo deployments trigger --help

For interactive issues or feature requests, see the Reoclo CLI repository.