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 (supports --user/--project/--local)
cf uninstallRemove the Coding Friend plugin (supports --user/--project/--local)
cf disableDisable the plugin without uninstalling (supports --user/--project/--local)
cf enableRe-enable a disabled plugin (supports --user/--project/--local)
cf initInitialize workspace with documentation folders and platform configuration
cf configManage Coding Friend configuration interactively
cf hostBuild and serve learning docs as a local website
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 (supports scope flags)
cf devSwitch between local and remote plugin for development
cf sessionSave and load Claude Code sessions across machines
cf helpShow help information

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.