@codapult/cli
v0.8.0
Published
Codapult CLI — manage, update, and diagnose your Codapult SaaS project
Downloads
1,652
Maintainers
Readme
@codapult/cli
CLI tool for managing Codapult SaaS projects.
Installation
npm install -g @codapult/cliOr run directly with npx:
npx @codapult/cli <command>Commands
Project
codapult setup— interactive project setup wizard (or non-interactive with--preset)codapult update [version]— update from upstream Codapult releasescodapult doctor— check project health and configurationcodapult config— show current project configuration
Plugins
codapult plugins add <name>— install a plugin from a local directorycodapult plugins remove <name>— uninstall a plugincodapult plugins migrate [name]— update plugin schema and generate DB migration (--pushfor dev mode)codapult plugins list— list installed plugins
Code Generation
codapult generate page <name>— create a dashboard pagecodapult generate api <name>— create an API route (auth + rate limit + Zod)codapult generate action <name>— create a server actioncodapult generate plugin <name>— scaffold a new plugin repository
Database
codapult db push— apply schema to databasecodapult db generate— generate migration filescodapult db seed— seed sample datacodapult db studio— open Drizzle Studiocodapult db status— show schema info and migration count
Environment
codapult env check— validate .env.local against .env.examplecodapult env sync— add missing variables from .env.example
Deployment
codapult deploy vercel— build and deploy to Vercelcodapult deploy docker— build Docker imagecodapult deploy status— check deploy readiness
AI Integration
codapult mcp-server— start MCP server for AI assistant integration (Cursor, Claude, Codex)
MCP Server
The CLI includes an MCP (Model Context Protocol) server with 19 tools, 6 resources, and 2 prompt templates for AI-assisted development. See the MCP documentation for details.
Development
pnpm install
pnpm dev # watch mode — rebuild on changes
pnpm test # run unit tests
pnpm lint # lint
pnpm typecheck # type-check without emittingReleasing
Releases are managed with release-it. The workflow:
- Run the release command on the
mainbranch:
pnpm run release # interactive — prompts for version bump type
pnpm run release -- patch # non-interactive patch bump (0.1.0 → 0.1.1)
pnpm run release -- minor # minor bump (0.1.0 → 0.2.0)
pnpm run release -- major # major bump (0.1.0 → 1.0.0)release-itwill automatically:- Run pre-release checks (lint, typecheck, test)
- Bump the version in
package.json - Update
CHANGELOG.mdfrom Conventional Commits - Commit the changes (
chore: release v<version>) - Create a Git tag (
v<version>) - Push the commit and tag to
origin
The
v*tag push triggers the Publish GitHub Actions workflow, which builds and publishes the package to npm.
Dry run
Preview what a release would do without making any changes:
pnpm run release -- --dry-runPrerequisites
- npm trusted publishing must be configured for the
@codapult/clipackage on npmjs.com. - Commit messages should follow Conventional Commits for meaningful changelogs (e.g.
feat:,fix:,chore:).
License
MIT
