Use tapd label commands to create, list, count, and update TAPD labels.
All label commands use the configured TAPD credentials from tapd login or the
TAPD_ACCESS_TOKEN / TAPD_CLIENT_ID / TAPD_CLIENT_SECRET environment
variables.
Most label commands require a workspace:
tapd label list --workspace-id 123456The short form is also supported:
tapd label list -w 123456Label commands default to table output:
tapd label list -w 123456Use JSON when piping to another program or when you need the full SDK response shape:
tapd label list -w 123456 --format jsontapd label create -w 123456 --name backendUseful optional flags:
tapd label create -w 123456 --name backend --color 1 --creator aliceTAPD label colors use numeric values 1, 2, 3, and 4.
tapd label list -w 123456 --limit 20 --page 1Filter by common fields:
tapd label list -w 123456 --ids 10001,10002
tapd label list -w 123456 --name backend
tapd label list -w 123456 --creator alice
tapd label list -w 123456 --created "2026-01-01~2026-01-31"tapd label count -w 123456
tapd label count -w 123456 --creator alice
tapd label count -w 123456 --name backendtapd label update 10001 -w 123456 --color 2Set the modifier when updating:
tapd label update 10001 -w 123456 --color 2 --modifier alicetapd label update requires at least one of --color or --modifier.
The label command implementation currently lives in:
internal/cmd/label.go
When adding or renaming label commands:
- Reuse the typed SDK methods from
github.com/go-tapd/tapd. - Keep table output compact and use
--format jsonfor full response data. - Update
features.md. - Update this document.
- Regenerate shell completion files if they have been installed locally.