Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.capy.sc/llms.txt

Use this file to discover all available pages before exploring further.

Synopsis

capy checkout <branch>
capy checkout -b <new-branch>
capy checkout --protected -b <new-branch>

Description

Switches to the named branch. If the branch doesn’t exist and you pass -b, Capy creates it first. The .env file is rewritten in place with the snippets from the new branch.

Flags

FlagDescription
-b, --createCreate the branch if it doesn’t exist.
--protectedMark the new branch as invite-only. Only meaningful with -b.

Examples

# Switch to an existing branch
capy checkout staging

# Create a new branch from the current state
capy checkout -b hotfix-payments

# Create a protected (invite-only) branch
capy checkout --protected -b production

See also