@jxdltd/onyx-cli
v0.3.1
Published
Command line interface for Onyx.
Maintainers
Readme
@jxdltd/onyx-cli
Onyx from the command line.
Install
npm install -g @jxdltd/onyx-cli
# or run without installing
npx @jxdltd/onyx-cli loginUsage
onyx login
Log in through your browser using the OAuth device flow. The CLI shows a short code, opens the verification page, and waits for you to approve the request. No password ever touches the terminal.
onyx login| Flag | Description |
| ---------------- | -------------------------------------------------------------------------- |
| --url <origin> | Onyx server origin. Defaults to $ONYX_API_URL, then the hosted app. |
| --no-open | Print the verification link instead of opening a browser. Useful over SSH. |
onyx whoami
Show the account you are logged in as.
onyx whoami
onyx whoami --json--json prints the user, session, and active organization as JSON for scripting. The session token is never included in the output.
onyx org
Show the organization an API key is scoped to, including its billing plan.
onyx org --api-key onyx_... # or set ONYX_API_KEY
onyx org --jsonConfiguration
ONYX_API_URL: default server origin foronyx login.- The session token is stored at
~/.config/onyx/auth.json($XDG_CONFIG_HOME/onyx/auth.jsonwhen set) with0600permissions. Delete the file to log out.
Development
This package lives in the Onyx monorepo under published/cli and is built with vp pack (Vite+). Releases are versioned with Changesets and published from CI.
vp install
vp run build --filter @jxdltd/onyx-cliLicense
MIT
