LXLEONARDX

LEONARDX / WORKSPACE

LeonardX CLI

Use the supported project API from a local terminal.

@leo-os/cli · v1.0.0 · npm package

Manage supported workspace operations locally.

The published CLI validates your API key, links an owned project, and reads or creates projects through existing LeonardX API routes. Commands shown in the Studio are examples; it never runs a local process.

Supported commands
leo login --api-key "$LEO_API_KEY" --base-url https://your-domain
leo init <workspace-id>
leo status
leo projects list
leo projects create "My app" --type web_app

Credentials are stored in the user config directory with restrictive permissions. Install the published package with npm install -g @leo-os/cli.

Cloud execution boundary

leo deploy --brief and leo ship use the authenticated API-key deployment bridge for linked developer projects. The command waits for the existing OpenAI, GitHub, and Vercel flow to return a verified result.

The terminal preview below is simulated. It does not access your computer, read your key, or make API requests.
Integration StudioSimulation · no request sent

Follow the integration, one step at a time.

Explore real LeonardX contracts with sample code and a simulated terminal. This walkthrough never uses credentials, contacts endpoints, or changes account data.

Source-backed examples

Walkthrough scenario

Supported CLI commands authenticate and read project metadata.

Authenticate locally

Login validates the key against /api/v1/me before saving local CLI configuration.

terminal1 / 2
leo login --api-key "$LEO_API_KEY" --base-url "https://your-leonardx-domain"

Execution preview

Synchronized to the highlighted code

Supported command · not executed here
leo · clisimulated

$ leo login --api-key "$LEO_API_KEY" --base-url "https://your-leonardx-domain"

[SIMULATION] Command not run

Real command validates credentials before saving them

What is live? The examples describe existing API, SDK, CLI, and webhook behavior. This preview itself is local UI only and does not report a real execution.

Link a project: step 1 of 2. Authenticate locally