Skip to content

garden label

Manage a repository’s labels

Terminal window
garden label
Flag Type Default Description
--target string — Garden backend to talk to (prod|dev); defaults to the checkout’s own target

Create a label

Terminal window
garden label create <name>
Flag Type Default Description
--color string — Hex color, e.g. #d73a4a
--description string — Description
--json bool — Output as JSON
-o, --org string — Organization slug (defaults to the checkout’s org)
-R, --repo string — Repository slug (defaults to the current checkout)
--target string — Garden backend to talk to (prod|dev); defaults to the checkout’s own target

Delete a label (removes it from all PRs)

Terminal window
garden label delete <name>

Aliases: rm

Flag Type Default Description
-o, --org string — Organization slug (defaults to the checkout’s org)
-R, --repo string — Repository slug (defaults to the current checkout)
--target string — Garden backend to talk to (prod|dev); defaults to the checkout’s own target

Update a label’s color or description

Terminal window
garden label edit <name>

Aliases: update

Flag Type Default Description
--color string — New hex color, e.g. #d73a4a
--description string — New description
--json bool — Output as JSON
-o, --org string — Organization slug (defaults to the checkout’s org)
-R, --repo string — Repository slug (defaults to the current checkout)
--target string — Garden backend to talk to (prod|dev); defaults to the checkout’s own target

List the repository’s labels

Terminal window
garden label list

Aliases: ls

Flag Type Default Description
--json bool — Output as JSON
-o, --org string — Organization slug (defaults to the checkout’s org)
-R, --repo string — Repository slug (defaults to the current checkout)
--target string — Garden backend to talk to (prod|dev); defaults to the checkout’s own target