Skip to content

cwp db list

shipped 1.0.0
cwp db list [flags]

Local only — it acts on no environment.

Plus the shared flags --json, --verbose and --dry-run.

What it does

Reads .ddev/db_snapshots/ and prints this project’s snapshots, newest first, with the time each was created.

It is the command you run before cwp db restore when you know roughly when you want to go back to. pre-pull-<env>-<timestamp> entries are the ones cwp pull left behind.

Example

$ cwp db list
– snapshots — none in ~/Code/example/example.com/.ddev/db_snapshots

Captured from cwp 1.0.0. Not written by hand.

cwp db list --json   # for a script that wants the names

What it does not do

It changes nothing and reads no remote. --dry-run is accepted and ignored, because there is nothing to plan.

It does not prune. Snapshots accumulate until cwp db rm removes one.