cc switch

Switch your active project and configure your IDE.

Usage

cc switch [name] [flags]

Arguments

Argument
Description

name

Project name (tab-completable). If omitted, re-runs switch actions on the current active project.

Flags

Flag
Description

-s, --silent

Switch without opening the IDE

-n, --new

Open the project in a new IDE window

-i, --ignore

Ignore saved config and re-discover the project from scratch

What It Does

  1. Looks up the project in the database

  2. If multiple environments exist, prompts you to choose one

  3. Checks if you've been on the previous project longer than your flag threshold — shows a summary if so

  4. Sets the environment as active (per-version slot in multi-version mode)

  5. Updates launch.json with the correct paths, database, and modules

  6. Checks out the configured git branch

  7. Changes directory to the project path

  8. Opens the project in your IDE

Examples

Last updated

Was this helpful?