cc db

Manage the database linked to the active environment. Updates the -d argument in launch.json and links the database in CC's internal records.

Usage

cc db [DB_NAME]
cc db [DB_NAME] --rename NEW_NAME
cc db [DB_NAME] --remove

If no database name is provided, CC shows a list of PostgreSQL databases matching the active project name.

Flags

Flag
Description

--rename NEW_NAME

Rename the database in CC's internal records

--remove

Drop the PostgreSQL database and remove it from CC records

Examples

cc db my_project_v17
# → Sets launch.json to use my_project_v17

cc db
# → Shows interactive list of matching databases to choose from

cc db old_name --rename new_name
# → Renames the record in CC (does not rename the PostgreSQL database)

cc db old_db --remove
# → Drops the PostgreSQL database after confirmation

Last updated

Was this helpful?