skip to content
ccdocs
Commandscc db

cc db rename

Rename a database — both the PostgreSQL database and cc's record.

Usage

cc db rename <old> <new>

Arguments

ArgumentDescription
oldCurrent database name (tab-completable)
newNew database name

What it does

  1. Renames the PostgreSQL database (direct connection or via docker exec, so it works on a dockerized Postgres) and updates cc's cache record.
  2. If the renamed database is the active environment's database, rewrites cc.database in the version's settings.json to the new name.

On this page