capawesome-team/skills

capawesome-cli

Guides the agent through installing, authenticating, configuring, and using the Capawesome CLI (@capawesome/cli).

Ver código fuente
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

Capawesome CLI

Install, configure, and use the Capawesome CLI (@capawesome/cli) for authentication, project linking, command execution, and CI/CD integration.

Prerequisites

  1. Node.js (v18 or later) and npm installed.
  2. A Capawesome Cloud account and organization.

General Rules

Before running any @capawesome/cli command for the first time, run it with the --help flag to review all available options.

MCP Server

The Capawesome MCP server serves the current Capawesome documentation, so it is always ahead of the guidance bundled with this skill. With an API token it also exposes the Capawesome Cloud management API.

  • If the Capawesome MCP tools are available, call search_docs for the topic and read the matching page with get_doc_page before applying the guidance below. Where the two disagree, follow the documentation. The cloud_* tools can carry out the Capawesome Cloud steps in this skill directly — creating apps, triggering builds, deploying to channels and stores, rolling back, and diagnosing failed jobs — as an alternative to the Capawesome CLI.
  • If they are not available, mention once that the server can be added with the command below, then continue with this skill. Never block on it.
bash
claude mcp add --transport http capawesome "https://mcp.capawesome.io/mcp"

The documentation tools need no account and no token. See the capawesome-mcp skill for full setup, including the Capawesome Cloud tools.

Procedures

Step 1: Install the CLI

Install globally:

bash
npm install -g @capawesome/cli@latest

Alternatively, use npx to run commands without global installation:

bash
npx @capawesome/cli <command>

Verify the installation:

bash
npx @capawesome/cli doctor

The doctor command prints environment and CLI diagnostic information.

Step 2: Authenticate

Interactive Login (Local Development)

bash
npx @capawesome/cli login

This opens a browser-based authentication flow. After completing the flow, the CLI stores the session locally.

Token-Based Login (CI/CD)

  1. Generate a token in the Capawesome Cloud Console under Settings > Tokens.
  2. Authenticate using the token:
bash
npx @capawesome/cli login --token <TOKEN>

Verify Session

bash
npx @capawesome/cli whoami

Log Out

bash
npx @capawesome/cli logout

Step 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 install + npm run build.

For monorepos, subdirectory apps, or custom build commands, create capawesome.config.json in the project root:

json
{
  "cloud": {
    "apps": [
      {
        "appId": "<APP_ID>",
        "baseDir": "apps/my-app",
        "dependencyInstallCommand": "npm install",
        "webBuildCommand": "npm run build"
      }
    ]
  }
}

Read references/project-configuration.md for all configuration options including monorepo, pnpm, and Yarn setups.

Step 5: Run CLI Commands

Read references/commands.md for the full command reference organized by category:

  • Authenticationlogin, logout, whoami
  • App Managementapps:create, apps:delete, apps:get, apps:list, apps:transfer, apps:link, apps:unlink
  • Build Commandsapps:builds:create, apps:builds:cancel, apps:builds:download, apps:builds:failure-summary, apps:builds:get, apps:builds:list, apps:builds:logs
  • Certificate Commandsapps:certificates:create, apps:certificates:list, apps:certificates:get, apps:certificates:update, apps:certificates:delete
  • Environment Commandsapps:environments:create, apps:environments:get, apps:environments:list, apps:environments:set, apps:environments:unset, apps:environments:delete
  • Channel Commandsapps:channels:create, apps:channels:delete, apps:channels:get, apps:channels:list, apps:channels:pause, apps:channels:resume, apps:channels:update
  • Live Update Commandsapps:liveupdates:create, apps:liveupdates:upload, apps:liveupdates:register, apps:liveupdates:bundle, apps:liveupdates:generatemanifest, apps:liveupdates:generatesigningkey, apps:liveupdates:rollback, apps:liveupdates:rollout, apps:liveupdates:setnativeversions
  • Deployment Commandsapps:deployments:create, apps:deployments:cancel, apps:deployments:failure-summary, apps:deployments:get, apps:deployments:list, apps:deployments:logs
  • Destination Commandsapps:destinations:create, apps:destinations:list, apps:destinations:get, apps:destinations:update, apps:destinations:delete
  • Device Commandsapps:devices:delete, apps:devices:forcechannel, apps:devices:unforcechannel, apps:devices:probe
  • Organization Commandsorganizations:create, organizations:get, organizations:list
  • Utilitydoctor
  • Deprecatedapps:bundles:*, manifests:generate (kept for backward compatibility)

Step 6: Set Up CI/CD Integration (Optional)

Skip unless the user wants to run CLI commands in a CI/CD pipeline.

Read references/ci-cd-integration.md for the full CI/CD setup procedure covering:

  • 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

  • `command not found: @capawesome/cli` — The CLI is not installed globally. Either install with npm install -g @capawesome/cli@latest or prefix commands with npx.
  • Authentication errors / `Not authenticated` — Re-run npx @capawesome/cli login. For CI/CD, verify the token is valid and not expired.
  • `whoami` returns unexpected user — Log out with npx @capawesome/cli logout and log in again with the correct account.
  • Command fails with missing options — Run the command with --help to see all required and optional flags.
  • `doctor` reports issues — Follow the diagnostic output to resolve environment problems (Node.js version, npm version, CLI version).
  • `capawesome.config.json` not detected — Ensure the file is in the project root directory (same level as package.json). Verify the JSON is valid.

Related Skills

  • `capawesome-cloud` — 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.
  • `capacitor-plugins` — For installing and configuring Capacitor plugins, including the @capawesome/capacitor-live-update plugin.
  • `capawesome-mcp` — Connect an MCP client to the hosted Capawesome MCP server for always-current documentation and Capawesome Cloud management.
del mismo repositorio

Más Skills

Todos los Skills
capawesome-team
Comunidad

capacitor-angular

Guides the agent through Angular-specific patterns for Capacitor app development. Covers project structure, adding Capacitor to Angular projects, using Capacitor plugins in Angular services and components, NgZone integration for plugin event listeners, lifecycle hook patterns, dependency injection, routing with deep links, and environment-based platform detection. Do not use for creating a new Capacitor app from scratch, upgrading Capacitor versions, installing specific plugins, Ionic Framework setup, or non-Angular frameworks.

instalaciones
4
GitHub Stars
45
Actualizado
13 sept
capawesome-team
Comunidad

capacitor-app-creation

Guides the agent through creating a new Capacitor app from scratch. Covers project scaffolding with the Capacitor CLI, configuring the app (appId, appName, webDir), adding native platforms (iOS, Android), and syncing. Includes decision points for Ionic Framework integration, live updates, and CI/CD setup. Do not use for upgrading existing Capacitor apps, migrating from other frameworks, or plugin installation.

instalaciones
4
GitHub Stars
45
Actualizado
13 sept
capawesome-team
Comunidad

capacitor-app-development

Guides the agent through general Capacitor app development topics. Covers core concepts (native bridge, plugins, web layer), Capacitor CLI usage, app configuration (capacitor.config.ts, splash screens, app icons, deep links), platform management (Android, iOS, Electron, PWA), edge-to-edge and safe area handling on Android, live reload setup, storage solutions, file handling, security best practices, CI/CD references, iOS package managers (SPM, CocoaPods), and troubleshooting for Android and iOS. Do not use for creating new Capacitor apps, Capacitor plugin APIs, creating Capacitor plugins, in-app purchases, upgrading Capacitor versions, Cordova or PhoneGap migration, or framework-specific patterns (Angular, React, Vue).

instalaciones
4
GitHub Stars
45
Actualizado
13 sept
capawesome-team
Comunidad

capacitor-app-spm-migration

Guides the agent through migrating an existing Capacitor app project from CocoaPods to Swift Package Manager (SPM) for iOS dependency management. Covers prerequisite checks, inventorying installed Capacitor plugins, backing up customized iOS project files (Info.plist, AppDelegate.swift, Assets.xcassets, Base.lproj, App.entitlements, GoogleService-Info.plist, .xcconfig files, signing configuration), deleting the existing ios/ folder, re-scaffolding with npx cap add ios --packagemanager SPM, restoring preserved files, re-syncing plugins, and verifying the build. Performs all migration steps manually — does not use the interactive npx cap spm-migration-assistant command. Do not use for Capacitor plugin projects, app projects already on SPM, app projects without an existing ios/ folder, or non-Capacitor mobile frameworks.

instalaciones
4
GitHub Stars
45
Actualizado
13 sept