garden repo
Manage repositories
garden repogarden repo create
Section titled “garden repo create”Create a new repository
garden repo create <name>Create a new repository on the platform.
The name must be lowercase alphanumeric with optional hyphens (1-63 characters) and matches gh repo create’s naming rules.
If –org is omitted, the repository is created in your personal workspace.
| Flag | Type | Default | Description |
|---|---|---|---|
--clone |
bool | — | Clone the repository into ./<name> after creating it |
--default-ref |
string | main |
Default branch name |
-d, --description |
string | — | Description of the repository |
--display-name |
string | — | Human-readable display name (defaults to the name) |
--from |
string | — | Import from a GitHub repo after creating (URL or owner/repo) |
-o, --org |
string | — | Organization slug (defaults to personal workspace) |
--path |
string | — | Clone into this path instead of ./<name> (implies –clone) |
garden repo delete
Section titled “garden repo delete”Delete a repository
garden repo delete <name>Aliases: rm
Permanently delete a repository and all of its data. This cannot be undone.
If –org is omitted, the repository is deleted from your personal workspace.
| Flag | Type | Default | Description |
|---|---|---|---|
-o, --org |
string | — | Organization slug (defaults to personal workspace) |
-y, --yes |
bool | — | Skip the confirmation prompt |
garden repo list
Section titled “garden repo list”List repositories in an org
garden repo listAliases: ls
List repositories. If –org is omitted, lists your personal workspace repositories.
| Flag | Type | Default | Description |
|---|---|---|---|
--filter |
string | — | AIP-160 filter using repository fields, e.g. ‘display_name = “garden”’ (not the JSON key displayName) |
--json |
bool | — | Output as JSON |
--limit |
int32 | 0 |
max results to return (1-1000; default 50) |
--name |
string | — | Filter by display name |
--order-by |
string | — | order by repository fields: display_name, create_time (append asc or desc) |
-o, --org |
string | — | Organization slug (defaults to personal workspace) |
--skip |
int32 | 0 |
skip the first N results (nonnegative; use with –limit) |