CLI
Getting Started
Installation and configuration of the Saedra CLI
Installation
For end users (production)
npm install -g @saedra/cliAfter 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 --globalTo unlink later:
pnpm unlink --global @saedra/cliTo run without linking globally:
node packages/cli/dist/index.js <command>Configuration
| Variable | Description | Default |
|---|---|---|
SAEDRA_API_URL | API server URL | https://saedra-api.onrender.com |
In development, point the CLI to your local API:
export SAEDRA_API_URL=http://localhost:3002Or inline per command:
SAEDRA_API_URL=http://localhost:3002 saedra login