cc restore
Restores a PostgreSQL database from its CC copy (<db_name>-CC-COPY). The original database is dropped and recreated from the copy.
Usage
cc restore [DB_NAME]If no database name is given, CC reads it from the active environment's linked database (falling back to settings detection on the workspace path).
Example
cc restore my_project_v17
# → Drops my_project_v17, restores from my_project_v17-CC-COPY
cc restore
# → Detects DB from the active environment and restores itYou must run
cc copyfirst. If no copy exists, the command will abort.
Related
cc copy— create a copy of the database