Unified command-line tool for the Voyant open-source framework and the Voyant Cloud platform. Ships as a single binary, no login required for the open-source workflows.
npm i -g @voyantjs/cli
voyant --helpOpen source — no login required
Scaffolding, code generation, config inspection, database tooling, and a TypeScript script runner. These commands work standalone against any Voyant project.
voyant new my-app # scaffold from a starter
voyant generate module invoices # add a new module package
voyant generate link crm.person products.product --right-list
voyant config show # inspect voyant.config.ts
voyant db generate # drizzle-kit pass-through
voyant db sync-links # SQL DDL for module links
voyant exec ./scripts/backfill.ts # run a TS script with native strip-types
voyant workflows build --file ./src/workflows.ts
voyant dev --file ./src/workflows.tsCloud — needs a Voyant Cloud login
Authenticate once, then drive Voyant Cloud from your terminal.
voyant login # browser device flow
voyant login --token tok_live_… # CI / headless mode
voyant whoami
voyant logout
voyant vaults list
voyant secrets list production
voyant secrets get production DATABASE_URL
voyant secrets set production STRIPE_KEY sk_live_xyz
voyant secrets rm production OLD_KEYvoyant login runs an OAuth 2.0 device-code grant (RFC 8628)
against https://api.voyantjs.com/cli/v1/device/*. It prints a verification
URL, opens it in your browser (suppress with --no-browser), and polls
until you approve. The minted token is stored in
~/.voyant/credentials.json (mode 0600), keyed by API URL — so you can be
logged into multiple environments at once (prod, staging, self-hosted).
For CI or headless use, mint an API token in the dashboard tokens UI and
run voyant login --token tok_live_xyz. Same outcome, no browser hop.
Token resolution order on every cloud command:
--token <value>flagVOYANT_CLOUD_API_KEYenv var~/.voyant/credentials.jsonfor the resolved API URL
- 0.19.0 — first release from this repo.
- Earlier
0.18.xwas published from thevoyantjs/voyantmonorepo. That copy is nowprivate: trueand serves only internal workspace consumers inside the framework repo.
See ROADMAP.md for what's next.
packages/cli—@voyantjs/cli, the published binary.packages/typescript-config— internal TS preset.
pnpm install
pnpm check-types
pnpm test
pnpm build
node packages/cli/bin/voyant.mjs --helpApache-2.0. See LICENSE.