tractorbeam marking
The Tractorbeam API's marking operations.
tractorbeam marking <subcommand> [flags]Shared flags
Every subcommand takes these flags.
| Flag | Description |
|---|---|
--config <string> | The Project's tractorbeam.config.ts. Defaults to the one in the current directory or its nearest ancestor. |
--workspace <string> | Workspace name. Environment variable: TRACTORBEAM_WORKSPACE. |
--origin <string> | The Tractorbeam API origin to call instead of https://tractorbeam.ai, such as a proxy's. Environment variable: TRACTORBEAM_ORIGIN. |
--token <string> | Access token. Defaults to the saved interactive session. Environment variable: TRACTORBEAM_TOKEN. |
marking list
Returns the definition of each Marking the Branch's HEAD, or a retained Commit on it, selects, in name order. Needs markings:read.
tractorbeam marking list [flags]| Flag | Description |
|---|---|
--at-commit-id <string> | The ID of a retained Commit on the Branch to read at. Defaults to the Branch's HEAD. |
--branch <string> | Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH. |
marking get
Returns the Marking's definition at the Branch's HEAD, or at a retained Commit on it. The response includes the definition's digest, and the owning Project when one owns it. Returns 404 when no Marking has this name. Needs markings:read.
tractorbeam marking get [flags] <marking>| Argument | Description |
|---|---|
<marking> | The name of the Marking. |
| Flag | Description |
|---|---|
--at-commit-id <string> | The ID of a retained Commit on the Branch to read at. Defaults to the Branch's HEAD. |
--branch <string> | Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH. |
marking create
Adds the Marking definition to the Project project. Applies the change in one Project Commit and returns the Apply result. Set dryRun: true to get a plan without committing. Resource removals and Object ID changes require the dry run's planDigest as acknowledgedPlanDigest. An Apply from Project source replaces these edits. Needs markings:write.
tractorbeam marking create [flags]| Flag | Description |
|---|---|
--branch <string> | Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH. |
--project <string> | The owning Project name. The request creates the Project if it does not exist on the Branch. |
--definition <json> | One nominal Marking definition selected in a Resource graph. |
--dry-run | |
--expected-head <string> | A canonical UUIDv7 TypeID. |
--acknowledged-plan-digest <string> | A SHA-256 digest as 64 lowercase hexadecimal digits. |
--json <json> | The body's fields as one JSON object. Flags given as well override its fields. |
marking update
Changes the Marking's definition by the merge patch definition. Applies the change in one Project Commit and returns the Apply result. Set dryRun: true to get a plan without committing. Resource removals and Object ID changes require the dry run's planDigest as acknowledgedPlanDigest. An Apply from Project source replaces these edits. Needs markings:write.
tractorbeam marking update [flags] <marking>| Argument | Description |
|---|---|
<marking> | The name of the Marking. |
| Flag | Description |
|---|---|
--branch <string> | Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH. |
--project <string> | A Resource's name, as its definition writes it: 1 to 56 letters, digits, -, and _, starting with a letter and ending with a letter or a digit, such as addNote, add_note, or customer-order. Names are case-sensitive. |
--definition <json> | A JSON Merge Patch (RFC 7396) of the definition. Objects merge recursively. Arrays are replaced in full. Use null to delete a field. Set name to rename the Resource while preserving its ID. Tractorbeam manages id, moduleGraphSha256, and compatibilityDate. |
--expected-definition-digest <string> | |
--dry-run | |
--expected-head <string> | A canonical UUIDv7 TypeID. |
--acknowledged-plan-digest <string> | A SHA-256 digest as 64 lowercase hexadecimal digits. |
--json <json> | The body's fields as one JSON object. Flags given as well override its fields. |
marking delete
Removes the Marking from its owning Project. Applies the change in one Project Commit and returns the Apply result. Set dryRun: true to get a plan without committing. Resource removals and Object ID changes require the dry run's planDigest as acknowledgedPlanDigest. An Apply from Project source replaces these edits. Needs markings:write.
tractorbeam marking delete [flags] <marking>| Argument | Description |
|---|---|
<marking> | The name of the Marking. |
| Flag | Description |
|---|---|
--project <string> | A Resource's name, as its definition writes it: 1 to 56 letters, digits, -, and _, starting with a letter and ending with a letter or a digit, such as addNote, add_note, or customer-order. Names are case-sensitive. |
--expected-definition-digest <string> | |
--dry-run <true|false> | |
--expected-head <string> | A canonical UUIDv7 TypeID. |
--acknowledged-plan-digest <string> | A SHA-256 digest as 64 lowercase hexadecimal digits. |
--branch <string> | Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH. |