Praxis CLI

Run Praxis from your terminal or CI, and how its two binaries, praxis and raptor, split the work.

The Praxis CLI brings Praxis's skills and tools to the AI assistant you already use, such as Claude Code. It signs you in with your Facets access token, installs the praxis and raptor skills, and gives your AI assistant Praxis's tools for your cloud accounts, clusters, and duties. Scripts and CI jobs can call the same tools.

It is the right choice when you would rather stay in your shell, wire Praxis into an editor or another AI assistant, or run the same operations without a browser.

Through the Praxis CLI, your own AI assistant is the agent. Facets work runs through raptor on your machine, with your Facets access token. Cloud and Kubernetes commands run on Facets' side, through the Praxis MCP gateway, the server endpoint that exposes Praxis's tools, and their credentials stay there.

MCP (Model Context Protocol) is a standard way to make a set of tools available to an agent. For how the gateway isolates each organization and audits every call, see How Praxis works.


Install and log in

Install praxis on macOS, Linux or Windows, then run praxis login: it installs raptor and signs in both.

In the Praxis web app, the Labs page lists the install command for each operating system, and the login command with your URL filled in. Every setup detail lives on Install Praxis CLI.


Talking to Praxis from the terminal

Once you are logged in, you ask your AI assistant for what you want, the way you would ask Praxis in chat, and it plans and runs the work.

The confirmed entry point for scripting is the praxis mcp command, which lists the tools Praxis exposes through the gateway and calls them by name. This is how scripts and other AI assistants reach the same capabilities available in the web app.

To flag a problem, praxis report -m "<what went wrong>" (or raptor report -m) sends a friction report to the Praxis team.

For the full, current list of commands, check the CLI's built-in help. This page covers what the CLI is and how it connects.


Skills in your AI assistant

Login installs two skills, the on-demand procedures your AI assistant follows for Facets work: praxis, which ships inside the praxis binary, and raptor, which ships with raptor. They replace the separate built-in skills the Praxis CLI used to install. Your Organization and Personal skills install alongside them as praxis-<name>, following the machine's default profile. Custom agents install as subagents in Claude Code and Gemini CLI.

AI assistantSkills folderPrompt hook
Claude Code~/.claude/skills/Yes
Codex~/.agents/skills/Yes, once you trust it in Codex's /hooks view
Gemini CLI~/.agents/skills/Yes
Google Antigravity~/.gemini/config/skills/No

The hook points Facets-related prompts at the praxis skill.

Cursor reads the skills the Praxis CLI installs for Claude Code, Codex or Gemini CLI on the same machine. With Cursor alone, the Praxis CLI doesn't install skills yet.

Skills refresh themselves when the binary changes, except ones you edited. Replaced built-in skills are removed, and edited copies are backed up to ~/.praxis/backups/ first.

praxis refresh-skills pulls skills your organization just published, without logging in again; --project installs them into the current repository. praxis list-skills shows what's installed and where.


Running Praxis from CI or cron

A pipeline can't click through a login, so it signs in with one of two credentials:

  • The environment credential, a Facets personal access token in CONTROL_PLANE_URL, FACETS_USERNAME and FACETS_TOKEN. It signs in praxis and raptor with no login step, so use it when the job runs raptor.
  • A Praxis API key with praxis login --token. It signs in praxis only.

The commands are under Non-interactive contexts.

Scripts can branch on the exit code: 0 success, 1 error, 2 usage error, 3 not logged in (run praxis login), 4 no configuration, 5 network error, 6 no AI assistant found.

Tip: You can also call the Praxis MCP gateway directly, without the CLI. See the API Reference for details.


The two binaries

praxis signs you in, installs skills into your AI assistant, and calls Praxis's tools through the MCP gateway. raptor runs Facets infrastructure operations: reading projects and releases, applying resources, streaming release logs, and the like.

You, or your AI assistant, run raptor on your machine for the commands these docs show. When you ask Praxis in the web app to do the same work, Praxis runs raptor for you on its servers, with your own Facets access.

After praxis login, both binaries use the same Facets access token, saved in ~/.facets/credentials, raptor's own file. So raptor needs no second login, and raptor login on its own also counts as a praxis login. A Praxis API key, used for CI, signs in praxis only.

Aspectpraxisraptor
What it doesSigns you in, installs skills, and calls Praxis's toolsRuns Facets infrastructure operations
Who runs itYou, or your AI assistantYou, your AI assistant, or Praxis on its servers
CredentialYour Facets access token, or a Praxis API keyFacets access token
Acts onPraxis's tools, over the MCP gatewayFacets infrastructure directly

For raptor's own commands, see the Facets CLI reference.