src clone

Clone a repository.

REPOSITORY can be:

  • OWNER/REPO (clones from SourceCraft)
  • https://sourcecraft.dev/OWNER/REPO (frontend URL)
  • Any git cloneable URL (cloned directly with warning)

Additional git flags can be passed after a '--' separator.

Usage

src clone <REPOSITORY> [<directory>] [-- <gitflags>...] [flags]

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 clone <subcommand> --help for more information about a command.

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