skip to content
ccdocs

cc cd

Change directory to an environment's project path.

Usage

cc cd [name] [flags]

Arguments

ArgumentDescription
nameEnvironment name to cd into directly.

Flags

FlagDescription
-c, --cwdcd to the active environment for the current working directory

Behavior

  • No args — shows a picker of all currently active environments (one per version slot). If only one is active, navigates immediately without prompting.
  • cc cd <name> — navigates directly to the named environment's project path.
  • cc cd --cwd — navigates to the active environment tied to your current working directory.

Workspaces and Multi-Version

In multi-version mode, CC tracks a separate active environment per version/workspace. cc cd (no args) shows all active environments across workspaces so you can jump between them. The --cwd flag resolves which workspace you're in based on your current directory (matching against version paths).

Examples

cc cd              # pick from active envs across all workspaces
cc cd acme_v18     # go directly to acme_v18's project path
cc cd --cwd        # go to the active env for the current version dir

On this page