cf update
Update the plugin, CLI and fix statusline configuration.
Usage
cf update # Update everything (plugin + CLI + statusline)
cf update --cli # Update only the CLI (npm package)
cf update --plugin # Update only the Claude Code plugin
cf update --statusline # Update only the statusline
cf update --project # Update plugin at project scope
cf update --local # Update plugin at local scope
cf update --agent codex # Upgrade the Codex marketplace/plugin cache
What It Does
- Updates the Coding Friend plugin to the latest version
- Updates the Coding Friend CLI to the latest version
- Rebuilds the bundled memory server after a CLI update so it's ready in your next Claude Code session
- Ensures the statusline points to the latest cached plugin version
- Ensures shell tab completion is up-to-date
- Validates that all configuration files are in place
- Fixes any missing or corrupted settings
Run this command periodically to stay current with the latest features and fixes.
Codex CLI
Use cf update --agent codex for Codex. It runs:
codex plugin marketplace upgrade coding-friend-marketplace
If Codex reports that the marketplace was upgraded but the plugin is not installed yet, open Codex and use /plugins to install coding-friend.
Scope Flags
Scope flags (--user, --global, --project, --local) only apply to plugin updates. CLI and statusline updates are always global.
You can combine component and scope flags:
cf update --plugin --project # Update plugin at project scope only
cf update --plugin --local # Update plugin at local scope only
When no scope flag is given, the plugin update defaults to user scope (no interactive prompt).