Use tapd source commands to add and query source commit information linked to
TAPD work items.
All source commands use the configured TAPD credentials from tapd login or the
TAPD_ACCESS_TOKEN / TAPD_CLIENT_ID / TAPD_CLIENT_SECRET environment
variables.
Most source commands require a workspace:
tapd source commit list --workspace-id 123456 --entity-type story --object-id 1111112222001000001The short form is also supported:
tapd source commit list -w 123456 --entity-type story --object-id 1111112222001000001Source commands default to table output:
tapd source commit list -w 123456 --entity-type story --object-id 1111112222001000001Use JSON when piping to another program or when you need the full SDK response shape:
tapd source commit list -w 123456 --entity-type story --object-id 1111112222001000001 --format jsontapd source commit add \
-w 123456 \
--commit-id abc123 \
--author alice \
--message "Implement login" \
--files "internal/auth.go,README.md" \
--repo go-tapd-cli \
--repo-id go-tapd-cli \
--commit-time "2026-06-01 10:00:00"Useful optional flags:
tapd source commit add \
-w 123456 \
--commit-id abc123 \
--author alice \
--message "Implement login" \
--files "internal/auth.go,README.md" \
--repo go-tapd-cli \
--repo-id go-tapd-cli \
--commit-time "2026-06-01 10:00:00" \
--git-env github \
--repo-url "https://github.com/go-tapd/cli" \
--commit-url "https://github.com/go-tapd/cli/commit/abc123"tapd source commit list \
-w 123456 \
--entity-type story \
--object-id 1111112222001000001Supported entity types are story, bug, and task.
Useful optional flags:
tapd source commit list \
-w 123456 \
--entity-type bug \
--object-id 1111112222001000001 \
--related-type source_code \
--commit-time "2026-01-01~2026-01-31"List TAPD objects related to commits:
tapd source commit objects \
-w 123456 \
--commit-ids abc123,def456 \
--entity-type storyUseful optional flags:
tapd source commit objects \
-w 123456 \
--commit-ids abc123 \
--entity-type task \
--scm-type github \
--fields id,name,statusThe source command implementation currently lives in:
internal/cmd/source.go
When adding or renaming source 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.