@policystack/cli
v1.0.1
Published
CLI to install PolicyStack and print a setup prompt for coding agents
Readme
@policystack/cli
Install PolicyStack into your project and print a setup prompt for your coding agent.
One command installs @policystack/sdk plus the right framework integration for your stack (Vite / React / Vue), writes an policystack.ts stub, and prints a prompt you can paste into Claude Code, Cursor, or any other coding agent to finish setup by reading your codebase.
Usage
From the root of your project:
bunx @policystack/cli init
# or: npx @policystack/cli init
# or: pnpm dlx @policystack/cli initThat's it — the CLI detects your package manager from lockfiles, installs the right packages, scaffolds src/policystack.ts (or policystack.ts if you don't have a src/ directory), and prints the agent prompt.
Flags
| Flag | Default | Description |
| ----------------------------- | ---------------------------------------- | --------------------------------------------- |
| --cwd <path> | . | Working directory |
| --pm <bun\|pnpm\|yarn\|npm> | auto-detected | Override package-manager detection |
| --skip-install | false | Print the prompt only; don't install packages |
| --dry-run | false | Show planned actions without executing |
| --yes, -y | false | Skip the confirmation prompt |
| --out <path> | src/policystack.ts or policystack.ts | Output path for the stub |
| --force | false | Overwrite an existing stub |
What gets installed
@policystack/sdk— always@policystack/vite(dev) — ifviteis in yourpackage.json@policystack/react— ifreactis in yourpackage.json@policystack/vue— ifvueis in yourpackage.json
