skip to content
ccdocs
Commandscc db

cc db link

Add a database to the current environment's pool, without making it active.

Usage

cc db link <name>

Arguments

ArgumentDescription
nameDatabase to link (tab-completable)

What it does

  • Requires an active environment — run cc switch first.
  • Adds the database to the environment's pool. This does not change the active database (cc.database / what launch.json runs) — use cc db use to make a pool database active.

The pool lets you keep multiple databases associated with one environment (e.g. clean, test, prod-copy) and switch between them easily.

On this page