CLI setup, config files, slash commands, headless CI execution, and agentic workspace workflows.
Install Claude Code globally via npm by running the command: 'npm install -g @anthropic-ai/claude-code'. Authorize the command-...
Claude Code supports command-line interface utility slash commands: '/init' to bootstrap directories, '/config' to set settings...
Add an MCP server to Claude Code by editing the local config file or using the slash command: '/mcp add <server-name> <...
Set a custom system prompt in Claude Code by editing the configuration file or using the configuration slash command: '/config ...
The config file is located at '~/.config/claude-code/config.json'. It is a standard JSON file containing keys for your active m...
Run Claude Code in headless/CI pipelines by passing the prompt argument directly using: 'claude "<your prompt>" --non-int...
Claude Code executes local system tools. You can run it in safe mode to block terminal write commands, or authorize specific wr...
To save token costs, run '/clear' periodically to reset the context history and avoid sending large, outdated git diffs or file...
Claude Code supports command line shortcuts: use 'Ctrl+C' to cancel a running generation or exit the application, and 'Ctrl+L' ...
Resolve CLI authentication issues by running '/config set logout', clearing your ~/.config/claude-code credentials directory, a...
Install Claude Code globally via npm by running the command: 'npm install -g @anthropic-ai/claude-code'. Authorize the command-line interface tool with your Anthropic Account to begin.
Claude Code supports command-line interface utility slash commands: '/init' to bootstrap directories, '/config' to set settings, '/mcp' to manage server connectors, '/clear' to purge console history, and '/exit' to terminate.
Add an MCP server to Claude Code by editing the local config file or using the slash command: '/mcp add <server-name> <command> [args...]'.
Set a custom system prompt in Claude Code by editing the configuration file or using the configuration slash command: '/config set systemPrompt "<your-prompt>"'.
The config file is located at '~/.config/claude-code/config.json'. It is a standard JSON file containing keys for your active model, custom system prompt, and registered MCP servers.