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/cliExpected: praxis --version prints a version number.
2. Sign in
praxis loginThe 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 whoamiExpected: 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 3Expected: a model list with at most three entries. --limit is a global option, so every list command accepts it.
5. Verify
praxis whoami --jsonExpected: 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 code1: 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> --helplists the domain’s commands.
Next
- Call the API
- For agents: hand the same commands to an agent.