capawesome-cli
Original:🇺🇸 English
Translated
Guides the agent through installing, authenticating, configuring, and using the Capawesome CLI (@capawesome/cli). Covers installation, interactive and token-based authentication, project linking via capawesome.config.json, the full command reference (app management, native builds, live updates, certificates, environments, channels, deployments, destinations, devices), CI/CD integration with token auth and JSON output, and diagnostics via the doctor command. Do not use for Capawesome Cloud feature setup (native builds workflow, live updates workflow, app store publishing) — use the capawesome-cloud skill instead.
6installs
Sourcecapawesome-team/skills
Added on
NPX Install
npx skill4agent add capawesome-team/skills capawesome-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Capawesome CLI
Install, configure, and use the Capawesome CLI () for authentication, project linking, command execution, and CI/CD integration.
@capawesome/cliPrerequisites
- Node.js (v18 or later) and npm installed.
- A Capawesome Cloud account and organization.
General Rules
Before running any command for the first time, run it with the flag to review all available options.
@capawesome/cli--helpProcedures
Step 1: Install the CLI
Install globally:
bash
npm install -g @capawesome/cli@latestAlternatively, use to run commands without global installation:
npxbash
npx @capawesome/cli <command>Verify the installation:
bash
npx @capawesome/cli doctorThe command prints environment and CLI diagnostic information.
doctorStep 2: Authenticate
Interactive Login (Local Development)
bash
npx @capawesome/cli loginThis opens a browser-based authentication flow. After completing the flow, the CLI stores the session locally.
Token-Based Login (CI/CD)
- Generate a token in the Capawesome Cloud Console under Settings > Tokens.
- Authenticate using the token:
bash
npx @capawesome/cli login --token <TOKEN>Verify Session
bash
npx @capawesome/cli whoamiLog Out
bash
npx @capawesome/cli logoutStep 3: Create or Select an App
Skip if the user already has a Capawesome Cloud app ID.
Create a new app:
bash
npx @capawesome/cli apps:create --name "My App" --organization-id <ORGANIZATION_ID>The CLI outputs the app ID (UUID). Save it for subsequent commands.
Step 4: Link a Project (Optional)
Skip for standard project setups where the app is in the repo root and uses + .
npm installnpm run buildFor monorepos, subdirectory apps, or custom build commands, create in the project root:
capawesome.config.jsonjson
{
"cloud": {
"apps": [
{
"appId": "<APP_ID>",
"baseDir": "apps/my-app",
"dependencyInstallCommand": "npm install",
"webBuildCommand": "npm run build"
}
]
}
}Read for all configuration options including monorepo, pnpm, and Yarn setups.
references/project-configuration.mdStep 5: Run CLI Commands
Read for the full command reference organized by category:
references/commands.md- Authentication — ,
login,logoutwhoami - App Management — ,
apps:createapps:delete - Build Commands — ,
apps:builds:create,apps:builds:cancel,apps:builds:downloadapps:builds:logs - Certificate Commands — ,
apps:certificates:create,apps:certificates:list,apps:certificates:get,apps:certificates:updateapps:certificates:delete - Environment Commands — ,
apps:environments:create,apps:environments:list,apps:environments:set,apps:environments:unsetapps:environments:delete - Channel Commands — ,
apps:channels:create,apps:channels:delete,apps:channels:get,apps:channels:list,apps:channels:pause,apps:channels:resumeapps:channels:update - Live Update Commands — ,
apps:liveupdates:upload,apps:liveupdates:register,apps:liveupdates:bundle,apps:liveupdates:generatemanifest,apps:liveupdates:generatesigningkey,apps:liveupdates:rollback,apps:liveupdates:rolloutapps:liveupdates:setnativeversions - Deployment Commands — ,
apps:deployments:create,apps:deployments:cancelapps:deployments:logs - Destination Commands — ,
apps:destinations:create,apps:destinations:list,apps:destinations:get,apps:destinations:updateapps:destinations:delete - Device Commands — ,
apps:devices:delete,apps:devices:forcechannel,apps:devices:unforcechannelapps:devices:probe - Organization Commands —
organizations:create - Utility —
doctor
Step 6: Set Up CI/CD Integration (Optional)
Skip unless the user wants to run CLI commands in a CI/CD pipeline.
Read for the full CI/CD setup procedure covering:
references/ci-cd-integration.md- Token-based authentication
- Non-blocking builds with
--detached - Machine-readable output with
--json - Skipping confirmation prompts with
--yes - Example workflows for GitHub Actions and other CI platforms
Error Handling
- — The CLI is not installed globally. Either install with
command not found: @capawesome/clior prefix commands withnpm install -g @capawesome/cli@latest.npx - Authentication errors / — Re-run
Not authenticated. For CI/CD, verify the token is valid and not expired.npx @capawesome/cli login - returns unexpected user — Log out with
whoamiand log in again with the correct account.npx @capawesome/cli logout - Command fails with missing options — Run the command with to see all required and optional flags.
--help - reports issues — Follow the diagnostic output to resolve environment problems (Node.js version, npm version, CLI version).
doctor - not detected — Ensure the file is in the project root directory (same level as
capawesome.config.json). Verify the JSON is valid.package.json
Related Skills
- — For setting up and using Capawesome Cloud features (native builds, live updates, app store publishing). Uses the CLI as a tool but covers the full workflow.
capawesome-cloud - — For installing and configuring Capacitor plugins, including the
capacitor-pluginsplugin.@capawesome/capacitor-live-update