src repo create

Create Repository in Organization

Usage

src repo create <org> [flags]

Examples

Create repository interactively

src repo create

Create repository with name and slug

src repo create myorg --name "My Repository" --slug my-repo

Create private repository

src repo create myorg --name "Private Repo" --slug private-repo --visibility private

Create with description

src repo create myorg --name "My Repo" --description "This is my repository"

Create with custom default branch

src repo create myorg --name "My Repo" --default-branch trunk

Flags

Flag Description
-w, --web Open in browser after completion
--name string Repository name (up to 256 characters)
--slug string Repository slug (up to 256 characters)
--description string Repository description (up to 10Mb)
--visibility string (values: public, internal, private)
--default-branch string Repository default branch (up to 256 characters). Optional, "main" if omitted

Inherited flags

Flag Description
--env string Override Sourcecraft environment (use 'src envs' to list available)
--json string Output JSON, optionally filtered (--json or --json=field1,field2)
--json-compact string Output compact JSON, optionally filtered
--plain Output without colors/styling (for LLM consumption)
-R, --repo string Select another repository using OWNER/REPO format
-V, --verbose Enable debug logging output

Learn more

Use src repo create <subcommand> --help for more information about a command.

Предыдущая
Следующая