Developer Toolsv1

Nexra CLI

Install the nexra command, sign in through the console and work with the API catalogue, connectors, Connect runs, SDKs and MCP tokens from your terminal.

Updated 07/10/2026

On this page

Install

The CLI needs Node.js 22 or later and has no other dependencies.

bash
npm install -g https://developer.amakoragroup.com/downloads/nexra-cli-0.2.0.tgz
nexra --version

To verify the download first, compare it with the published checksum:

bash
curl -fsSLO https://developer.amakoragroup.com/downloads/nexra-cli-0.2.0.tgz
curl -fsSL https://developer.amakoragroup.com/downloads/nexra-cli-0.2.0.tgz.sha256 | shasum -a 256 -c
npm install -g ./nexra-cli-0.2.0.tgz

Sign in

bash
nexra auth login

The CLI starts a listener on 127.0.0.1 and opens your browser at the Nexra console. Use --no-browser to print the link instead, for example over SSH with port forwarding.

Sign in if needed, check the page says Nexra CLI on this computer, and choose Sign in the CLI.

The browser returns to the CLI, which exchanges a one-time code (protected with PKCE) for a session.

Sessions last 12 hours and act with your current role in each workspace. Workspace sign-in policies, such as the maximum session age and "revoke sessions", apply exactly as they do in the browser.

CommandWhat it does
nexra auth statusShows whether you are signed in, from where, and until when
nexra auth whoamiShows your account, workspace and role
nexra auth logoutRemoves the session from this computer

The session is stored in credentials.json in the CLI's configuration directory, readable only by you (mode 0600). The directory is ~/.config/nexra on macOS and Linux, %APPDATA%\nexra on Windows, or NEXRA_CONFIG_DIR if you set it. Tokens are never printed, and secrets are never accepted as command-line flags.

In CI

Automation without a browser can set NEXRA_ACCESS_TOKEN from the CI secret store; it takes precedence over a stored session. To call MCP tools from CI, use nexra mcp token (below).

Choose a workspace and defaults

bash
nexra context use --workspace <workspace-id> --environment sandbox
nexra context show
nexra context reset

--workspace on any command overrides the default for that command and is sent as X-Workspace-Id. Use --profile <name> (or NEXRA_PROFILE) to keep separate sign-ins and defaults, for example for two organisations.

Commands

API catalogue

These commands need no sign-in.

CommandWhat it does
nexra catalogue list [--search <text>] [--category <c>] [--status <s>]Published API products
nexra catalogue get <product>One product
nexra catalogue endpoints <product>Its operations
nexra catalogue versions <product>The current version and earlier versions from the changelog
nexra catalogue openapi <product> [--version <v>] [--out <file>]The OpenAPI document
nexra catalogue artifact <product> <format> [--out <file>]A download; <format> is openapi, postman, typescript, python, go, csharp or java

Connectors

These commands need no sign-in.

CommandWhat it does
nexra connectors list [--search <text>] [--category <c>]Implemented providers with read and write counts
nexra connectors get <key>Provider details and every operation

Nexra Connect

CommandWhat it does
nexra connect connections listYour connections with environment, status and health
nexra connect connections test <id>Runs a connection health check
nexra connect integrations listIntegrations and their flow counts
nexra connect runs list [--flow <id>] [--status <s>] [--limit <n>]Recent runs
nexra connect runs get <id>One run with steps, errors and recovery options
nexra connect flows run <flow-id> --environment <sandbox or production>Starts a run

flows run generates an idempotency key unless you pass --idempotency-key. Re-running with the same key returns the original run instead of starting a new one. Production runs need an approved deployment.

SDKs

CommandWhat it does
nexra sdk targetsLanguages and runtimes
nexra sdk generate --product <slug> --language <lang> [--api-version <v>] [--wait]Starts a generation job; --wait polls until it finishes
nexra sdk jobs, nexra sdk job <id>, nexra sdk cancel <id>Track or cancel jobs
nexra sdk artifactsGenerated files
nexra sdk download <artifact-id> [--out <file>]Downloads and verifies the SHA-256 checksum
nexra sdk compatibility --product <slug> --from <v> --to <v>Compares two API versions
nexra sdk releasesRecorded SDK releases

MCP

bash
export NEXRA_MCP_CLIENT_ID=mcp_xxxxxxxxxxxx      # credential prefix
export NEXRA_MCP_CLIENT_SECRET=...               # from your secret store
export NEXRA_MCP_TOKEN=$(nexra mcp token)

nexra mcp token exchanges an MCP credential for a one-hour access token (see MCP authentication) and prints only the token.

Output

Every command accepts --output table (the default), json, yaml or ndjson. Tables are bold when your terminal supports it; use --no-color or NO_COLOR=1 for plain text. Fields named like tokens, secrets or passwords are always shown as [REDACTED].

bash
nexra connect runs list --status failed --output json | jq '.[].id'

Diagnose problems

bash
nexra doctor

doctor reports the CLI version, profile, API and console addresses, whether the API is reachable, where your session comes from, when it expires and who you are signed in as.

Exit codeMeaning
0Success
1The request failed
2Usage error: unknown command, missing or invalid option
3Not signed in, session expired, or the API returned 401
4Permission denied (403)
5Not found (404)
7The API could not be reached
9A downloaded file failed its checksum

Environment variables

VariablePurpose
NEXRA_API_URL, NEXRA_PORTAL_URLOverride the API and console addresses
NEXRA_PROFILE, NEXRA_CONFIG_DIRChoose a profile or configuration directory
NEXRA_WORKSPACE, NEXRA_APPLICATION, NEXRA_ENVIRONMENTDefaults for the current shell
NEXRA_ACCESS_TOKENCI only: a session token from your secret store
NEXRA_MCP_CLIENT_ID, NEXRA_MCP_CLIENT_SECRETFor nexra mcp token

Everything the CLI does is also available in the console and through the platform API.

Need a hand?

Ask Nexra AI for implementation steps or error guidance.

Ask Nexra AI