Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

tractorbeam connector

Inspect and disconnect Connectors.

tractorbeam connector <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.

connector list

Returns each Connector the Branch’s HEAD selects, by name, with the integration its definition names, whether the connection the caller reaches is connected, and whether the caller can change it. A personal Connector also counts the members connected to it. Needs connectors:read.

tractorbeam connector list [flags]
Flag Description
--branch <string> Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH.

connector get

Returns the Connector with this name selected by the Branch’s HEAD, as listConnectors returns each one. Returns 404 when none is selected. Needs connectors:read.

tractorbeam connector get [flags] <connector>
Argument Description
<connector> The name of the Connector to retrieve.
Flag Description
--branch <string> Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH.

connector list-connections

Returns the Connector’s connections the caller reads. A Workspace Connector has at most one, and every reader sees it. Of a personal Connector’s, a caller with connectors:write reads every member’s, and anyone else only their own. Needs connectors:read.

tractorbeam connector list-connections [flags] <connector>
Argument Description
<connector> The name of the Connector whose connections to list.
Flag Description
--branch <string> Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH.

connector get-connection

Returns whether the Connector’s connected account can supply a credential and who last connected it. The account is the Workspace’s, or for a personal Connector the caller’s own. The Connector is the one with this name on the selected Branch, and its provider names the integration the connection belongs to. Needs connectors:read.

tractorbeam connector get-connection [flags] <connector>
Argument Description
<connector> The name of the Connector whose connection to retrieve.
Flag Description
--branch <string> Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH.

connector delete-connection

Removes the Connector’s connected account and forgets it: the Workspace’s, or for a personal Connector the caller’s own. A Connector with no connection returns 204 too. Removing a Connector from the Branch doesn’t disconnect it, so disconnect it first. Needs a user, and connectors:write for the Workspace’s connection or connectors:read for a personal one.

tractorbeam connector delete-connection [flags] <connector>
Argument Description
<connector> The name of the Connector to disconnect.
Flag Description
--branch <string> Branch name. Defaults to the Branch you last switched to, or main. Environment variable: TRACTORBEAM_BRANCH.