corgi checkpoint
corgi checkpoint
Mark every repo's state so a change can be undone in one command
Synopsis
Records where every repo in the workspace stands — its branch, its HEAD, and
its uncommitted work — under one name. corgi restore <name> puts all of it back.
Uncommitted work is captured with git stash create, so the working tree is not touched and nothing lands in your stash list. A checkpoint costs nothing to keep.
--with-db also snapshots each postgres-family db_service, so a migration can be undone alongside the code that ran it.
corgi checkpoint [name] [flags]
Examples
corgi checkpoint before-referral
corgi checkpoint before-migration --with-db
corgi checkpoint list
corgi restore before-referral
Options
-h, --help help for checkpoint
--with-db Also snapshot every postgres-family db_service
Options inherited from parent commands
--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages
SEE ALSO
- corgi - Corgi cli magic friend
- corgi checkpoint list - List saved checkpoints
- corgi checkpoint rm - Delete a checkpoint and release the work it was holding