Saedra Docs
CLI

Getting Started

Installation and configuration of the Saedra CLI

Installation

For end users (production)

npm install -g @saedra/cli

After installing, the saedra command will be available globally.

For developers (local)

# 1. Install dependencies from the monorepo root
pnpm install

# 2. Build the CLI
pnpm --filter @saedra/cli build

# 3. Link it globally so you can use "saedra" in your terminal
cd packages/cli && pnpm link --global

To unlink later:

pnpm unlink --global @saedra/cli

To run without linking globally:

node packages/cli/dist/index.js <command>

Configuration

VariableDescriptionDefault
SAEDRA_API_URLAPI server URLhttps://saedra-api.onrender.com

In development, point the CLI to your local API:

export SAEDRA_API_URL=http://localhost:3002

Or inline per command:

SAEDRA_API_URL=http://localhost:3002 saedra login