CLI Overview
The coding-friend-cli provides commands for initialization, hosting, and configuration.
Installation
npm i -g coding-friend-cli
Check with cf --version. The binary is available as cf.
Updating the CLI
# Update everything (plugin + CLI + statusline)
cf update
# Update only the CLI
cf update --cli
The CLI also automatically checks for updates after each command (cached every 24 hours). When a new version is available, it displays a notification and auto-updates in place. No manual action needed — the next time you run any cf command, the latest version will be used.
You can also update manually via npm:
npm install -g coding-friend-cli@latest
Commands
| Command | Purpose |
|---|---|
cf install | Install the Coding Friend plugin (Claude default; --agent codex for Codex) |
cf uninstall | Remove the Coding Friend plugin (Claude default; --agent codex for Codex) |
cf disable | Disable the plugin without uninstalling (Claude default; --agent codex for Codex) |
cf enable | Re-enable a disabled plugin (Claude default; --agent codex for Codex) |
cf init | Initialize workspace with documentation folders and host configuration |
cf config | Manage Coding Friend configuration interactively |
cf clean | Interactively clean generated docs in docs/ subdirectories |
cf learn | Host learning docs as a website (cf learn host) or push them to git (cf learn push) |
cf mcp | Setup MCP server for integrating learning docs with other LLM clients |
cf statusline | Configure the Claude Code statusline with project info |
cf update | Update plugin, CLI, and statusline (Claude default; --agent codex for Codex) |
cf dev | Switch between local and remote plugin for development |
cf session | Save and load Claude Code sessions across machines |
cf help | Show help information |
cf hoststill works as a legacy alias forcf learn host.
Tab Completion
Tab completion is auto-configured during installation. You can immediately use cf <command> with completion support in your shell. Coding Friend will modify your shell configuration files to enable completion.