capwrap-cli is distributed as an npm package. You can install it globally so the capwrap command is available anywhere on your system, or as a project dev dependency to pin the version alongside your codebase.
Prerequisites
Confirm your environment meets these requirements before installing:- Node.js v16 or later — check with
node --version - npm v7 or later — check with
npm --version
Global install
The global install is the recommended approach for local development. It makes thecapwrap command available in your terminal from any directory.
The
-g flag installs the package to your system’s global npm prefix, not your project’s node_modules. This means the capwrap command is available in every terminal session without needing npx.Project-scoped install
For CI/CD pipelines and team projects, installcapwrap-cli as a dev dependency instead of globally. This pins the CLI version to your project and avoids the permission issues that can arise with global installs in CI environments.
npx to resolve it from your local node_modules:
Authentication
After installing, authenticate with your Capwrapper API key:Next steps
Commands reference
See every available capwrap command with flags and examples.
CI/CD integration
Automate builds and deployments in GitHub Actions or GitLab CI.
