Skip to content
中文

Quickstart

By the end of this page you have praxis installed on your machine, signed in through the browser, and you have run one workflow command and one API command, knowing how to confirm each step succeeded.

Before you start

  • Node.js 20 or newer (node --version).
  • A Praxis account with permission on the organization you will work in.

1. Install

终端窗口
npm install -g @deepraxis/cli

Expected: praxis --version prints a version number.

2. Sign in

终端窗口
praxis login

The command prints a URL and a one-time code and tries to open your browser. Approve the sign-in after checking that the code matches. The credential is stored in the system keychain; when no keychain is available it falls back to a file with restricted permissions.

Expected: the terminal reports a successful sign-in.

3. Check who you are

终端窗口
praxis whoami

Expected: your identity, the current organization, and where the credential is stored. The default environment is production; to switch environments see Environment and credentials.

4. Run your first API command

终端窗口
praxis api model list --limit 3

Expected: a model list with at most three entries. --limit is a global option, so every list command accepts it.

5. Verify

终端窗口
praxis whoami --json

Expected: a JSON object and exit code 0. In a script, judge success by the exit code: echo $?.

Common failures

  • Not signed in (the hint says to run praxis login), exit code 1: that environment has no login.
  • Credential rejected or expired (HTTP 401), exit code 1. Sign in again, or use a new API key.
  • A word is misspelt (Unknown command), exit code 2. praxis api <domain> --help lists the domain’s commands.

Next