Skip to main content

corgi init

corgi init

Create db service

Synopsis

This is used to create db service from template.

corgi init [flags]

Options

--depth int Clone each service repo shallow, keeping this many commits (0 = full clone)
--feature string Check out this branch in every service repo that has it, leaving the rest
on their default branch. Same rule as run --feature, applied to the checkouts
themselves, so anything reading a repo's files afterwards sees the branch.
Wins over a service's compose branch: when the repo has it; where it does not,
the compose branch: still applies.
-h, --help help for init

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
--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
Auto generated by spf13/cobra on 22-Jul-2026