Quickstart

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!

1

Install Command Code

Use your preferred package manager:

Install Command Code

npm i -g command-code@latest

Verify the install:

cmd --version

Command Code is available globally as command-code or the shorter alias cmd.

2

Log in

Run the following command to log in to the CLI.

Login to Command Code

cmd login

This 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.

Logged in as yourname

  API key stored in ~/.commandcode/auth.json

  Run cmd to get started.

Tip

Chrome 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.

3

Start coding with Command Code

Navigate to a project directory and run:

Run the Command Code CLI

cmd

The 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.

Tip

Skip 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 existing sessions

If you've used Claude Code or Codex before, Command Code can import your existing sessions to build your taste profile automatically. Use the /learn-taste slash command or cmd --learn-taste to build your taste from existing sessions.

4

Run your first prompt

Let's run a small prompt. Paste the following prompt in the input box.

Prompt

Build a date.js CLI that tells ISO format of date. Use commander.js and pnpm.

After Command Code finishes executing, press Ctrl + T (taste shortcut) to see what Command Code learned about your taste in .commandcode/taste/taste.md:

.commandcode/taste/taste.md

# CLI - Use pnpm as package manager. Confidence: 0.50 - Use commander.js for CLI argument parsing. Confidence: 0.50

As 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 shortcuts

Press ? to find keyboard shortcuts. See all keyboard shortcuts.

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.


Questions or feedback? Join the Discord community.