@caliobase/cli
v0.0.1
Published
Generic CLI wrapper for a Caliobase-generated content client.
Readme
@caliobase/cli
Generic CLI wrapper for a Caliobase-generated content client.
Use it through the package (npx @caliobase/cli ...) or the installed caliobase bin.
npx @caliobase/cli <path-to-content-client> methods
npx @caliobase/cli <path-to-content-client> <namespace.method> [json-arg ...]
npx @caliobase/cli <path-to-content-client> login --email [email protected] --password '...' --save
npx @caliobase/cli <path-to-content-client> exchange-machine-token --token '...' --saveThe first positional argument is the generated content client module. It can be a compiled JavaScript module or TypeScript source such as ./libs/content-client/src.
Environment is loaded from .env by default. Useful variables:
CALIOBASE_API_BASE_URLCALIOBASE_ACCESS_TOKENCALIOBASE_MACHINE_TOKENCALIOBASE_EMAILCALIOBASE_PASSWORDCALIOBASE_ORGANIZATION_ID
Global options:
--env <path>: env file path (default:.env)--base-url <url>: API origin (default:CALIOBASE_API_BASE_URLorhttp://localhost:4202)--no-auth: do not attachCALIOBASE_ACCESS_TOKEN
Generated client arguments are JSON-decoded when possible, so object bodies can be passed as strings:
npx @caliobase/cli ./libs/content-client/src notes.createNote '{"date":"2026-05-20","body":"hello"}'