@prodara/cli
v0.2.8
Published
Prodara CLI — thin wrapper that delegates to the project-local @prodara/compiler
Readme
@prodara/cli
A thin global CLI wrapper that resolves and delegates to the project-local @prodara/compiler.
Installation
npm install -g @prodara/cliHow It Works
- Walks up from the current directory to find
node_modules/@prodara/compiler - Checks version compatibility (major versions must match)
- Delegates all commands to the local compiler's CLI binary via
execFileSync
This ensures you always run the compiler version pinned in your project's package.json.
Usage
# Create a new project — automatically installs @prodara/compiler
prodara init my-project
# Update an existing project to latest version
prodara upgrade
# In a project with @prodara/compiler installed locally
prodara build
prodara validate
prodara graph
prodara plan
prodara test
prodara doctorAutomatic Setup
prodara init handles project setup automatically:
- Runs
npm init -yif nopackage.jsonexists - Installs
@prodara/compileras a dev dependency - Scaffolds the
.prdproject structure
Use --ai to also generate a single AI agent prompt file for your platform (Copilot, Claude, Cursor, and 23 others). This gives you the /prodara command — one prompt that drives the full build-to-deploy lifecycle.
Use --skip-install to skip the npm init and compiler installation steps.
If no local compiler is found, the CLI prints installation instructions.
License
Apache-2.0
