Commandscc db
cc db link
Add a database to the current environment's pool, without making it active.
Usage
cc db link <name>Arguments
| Argument | Description |
|---|---|
name | Database to link (tab-completable) |
What it does
- Requires an active environment — run
cc switchfirst. - Adds the database to the environment's pool. This does not change the active database (
cc.database/ whatlaunch.jsonruns) — usecc db useto 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.
Related
cc db— database group overviewcc db unlink— remove a database from the poolcc db use— make a pool database activecc db list— show the pool