tractorbeam resource
The Tractorbeam API's resource operations.
tractorbeam resource <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 origin to call instead of the default, such as a proxy’s. Environment variable: TRACTORBEAM_ORIGIN. |
--token <string> |
Access token. Defaults to the saved interactive session. Environment variable: TRACTORBEAM_TOKEN. |
resource get
Returns the ID and definition digest of every Resource the Branch’s HEAD, or a retained Commit on it, selects. Needs Workspace authority; an App token can’t list Resources.
tractorbeam resource get [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. |