comet update keeps your Comet installation current by updating both the npm package and the skill files deployed to your AI coding platforms.
Usage
path defaults to . (the current directory) when omitted. You can also update the package directly without refreshing skills:
What update Does
- Updates the npm package — Runs
npm install -g @rpamis/comet@latest(global install) ornpm install @rpamis/comet@latest(project install), depending on how Comet was originally installed. If the npm update fails, the command continues with the bundled skill files from the currently installed package. - Detects installed targets — Scans both the project directory and the home directory for platforms that already have Comet skills installed (files starting with
cometinside the platform’sskills/directory). - Detects installed language — Reads each target’s existing skill files to determine whether
enorzhskills are installed, and preserves that language unless overridden with--language. - Refreshes Comet skill files — Copies the latest skill files from the updated package’s assets to each detected target, always overwriting.
comet update exits with a prompt to run comet init first.
Flags
Suppress progress output and print a single structured JSON result when the command finishes. See JSON output below.
Override the auto-detected skill language for all targets. Accepted values:
en (English) or zh (Chinese). Without this flag, each target’s existing language is preserved individually.Limit the update to a single scope. Accepted values:
project or global. Without this flag, both scopes are scanned and updated.Example Output
JSON Output
npm.status field is one of:
| Value | Meaning |
|---|---|
updated | The npm package was updated successfully. |
failed | The npm update command exited with a non-zero code; skill files from the current package were used instead. |
skipped | The npm update step was skipped. |
comet update only refreshes Comet skill files. OpenSpec and Superpowers skills are managed by their own separate packages and are not touched by this command.