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

CommandPurpose
cf installInstall the Coding Friend plugin (Claude default; --agent codex for Codex)
cf uninstallRemove the Coding Friend plugin (Claude default; --agent codex for Codex)
cf disableDisable the plugin without uninstalling (Claude default; --agent codex for Codex)
cf enableRe-enable a disabled plugin (Claude default; --agent codex for Codex)
cf initInitialize workspace with documentation folders and host configuration
cf configManage Coding Friend configuration interactively
cf cleanInteractively clean generated docs in docs/ subdirectories
cf learnHost learning docs as a website (cf learn host) or push them to git (cf learn push)
cf mcpSetup MCP server for integrating learning docs with other LLM clients
cf statuslineConfigure the Claude Code statusline with project info
cf updateUpdate plugin, CLI, and statusline (Claude default; --agent codex for Codex)
cf devSwitch between local and remote plugin for development
cf sessionSave and load Claude Code sessions across machines
cf helpShow help information

cf host still works as a legacy alias for cf 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.