翻篇收录说明
翻篇网页快照

Quickstart with Command Code - Command Code Docs

https://commandcode.ai/docs/quickstart

最近抓取:2026-12-04 15:54:03(北京时间)

最近内容变化:2026-12-02 12:24:04(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Get Started with Command Code, the AI coding agent that continuously learns your coding taste with meta neuro-symbolic model taste-1.

正文摘录

Get StartedToggle SidebarHomeReferenceModelsPricingChangelogLoginOn this pageOverviewCopy PageQuickstart In this quickstart guide, we'll walk you through the steps to get started with Command Code. By the end, you'll have a working setup, your taste learning active, and be ready to start building! 1Install Command CodeCommand Code requires Node.js 22 or newer (the current LTS), it will refuse to start on Node 20 and below. Check yours with node -v, and if it's older, read the upgrade guide for every option.Install Command Code globally with npm:Install Command Codenpm i -g command-code@latest CopyVerify the install:Verify installcmd --version CopyCommand Code is available globally as command-code or the shorter alias cmd.WindowsOn native Windows the short alias is cmdc. In WSL it is cmd.Where you run itAliasmacOS, Linux, WSLcmdNative Windows (PowerShell, Windows Terminal, Git Bash)cmdccmd is already the built-in Windows command shell, so Command Code cannot claim that name there, but WSL is Linux, so cmd is free and every example in these docs works verbatim. On native Windows, read cmd as cmdc throughout: cmdc login, cmdc --version, cmdc -r, cmdc update. The full name command-code works everywhere. Set the shell code blocks to Windows and they rewrite themselves to cmdc, so you can copy them as-is.2Log inRun the following command to log in to the CLI.Login to Command Codecmd login CopyThis opens a browser to authenticate. Click the Authorize button to sign in and return to the terminal after the login successful message appears. You can create an API key and paste it in your terminal to log in.Login successful✔ Logged in as yourname API key stored in ~/.commandcode/auth.json Run cmd to get started. CopyTipChrome may ask to allow access to your local network. Command Code runs a temporary local server to complete the OAuth callback. This is safe and expected. Click the Allow button to proceed.CIRunning in CI, Docker, or over SSH with no browser? Skip cmd login and set the COMMAND_CODE_API_KEY environment variable instead. See Headless authentication.3Start coding with Command CodeNavigate to a project directory and run:Run the Command Code CLIcmd CopyThe first time you run cmd in a project, Command Code asks whether to trust the files in that folder. Select Yes, proceed to continue. Command Code asks this once per project directory.TipSkip this prompt with cmd --trust.Next, Command Code checks for existing coding sessions. If none are found, it offers a taste learning demo. Select Yes, show me a demo to see how Command Code learns your preferences.Importing your setupIf you've used Claude Code, Codex, Cursor, or another agent before, bring your setup over with /import: /import claude, /import codex, /import cursor, /import pi, /import opencode, or /import gemini. To build your taste profile from those existing sessions, use /learn-taste in a session or run cmd learn-taste.4Run your first promptLet's run a small prompt. Paste the following prompt in the input box.PromptBuild a date.js CLI that tells ISO format of date. Use commander.js and pnpm. CopyTaste learnings land inline in the transcript as they happen: a green TASTE row with what was learned, its confidence, and a link to the file it went to. Open .commandcode/taste/taste.md to see the whole profile:.commandcode/taste/taste.md# CLI - Use pnpm as package manager. Confidence: 0.50 - Use commander.js for CLI argument parsing. Confidence: 0.50 CopyAs you work, Command Code builds a taste profile in .commandcode/taste/. It continuously learns which package manager you use, which libraries you prefer, and how you structure code. These preferences carry into future sessions - and only relevant taste context loads per session.Useful shortcutsRun /hotkeys to see every keyboard shortcut. See the keybinding reference for the full list and how to remap them. Conclusion You've installed Command Code, logged in, and run your first prompt with taste learning active. From here, every session only gets smarter as Command Code adapts to your libraries, patterns, and learns your taste as you build. Updating Keep Command Code up to date for the latest features and fixes: Update Command Codecmd update Copy What's next Common Workflows - 10+ real examples of what to build Taste - how taste learning works under the hood Interactive Mode - all commands, shortcuts, and modes CLI Reference - flags and subcommands Questions or feedback? Join the Discord community.