Skip to content

chainabit connectors auth ​

Authenticate a connector instance

Synopsis ​

text
chainabit connectors auth <instance-id> [options]

Arguments ​

ArgumentDescriptionDefault
<instance-id>Required.—

Options ​

OptionDescriptionDefault
--api-key-stdinRead an API key from stdin—
--api-key-env <envVar>Read an API key from an environment variable—
--api-key-file <path>Read an API key from a file—
--token-stdinRead a bearer token from stdin—
--token-env <envVar>Read a bearer token from an environment variable—
--token-file <path>Read a bearer token from a file—
--connection-string-stdinRead a connection string from stdin—
--connection-string-env <envVar>Read a connection string from an environment variable—
--connection-string-file <path>Read a connection string from a file—
--username <username>Basic auth username—
--password-stdinRead a basic auth password from stdin—
--password-env <envVar>Read a basic auth password from an environment variable—
--password-file <path>Read a basic auth password from a file—
--custom-stdinRead custom credential JSON from stdin—
--custom-env <envVar>Read custom credential JSON from an environment variable—
--custom-file <path>Read custom credential JSON from a file—
--no-openDo not auto-open the browser for OAuth connectorsSetting without flag: true; with flag: false

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Inspects the connection's authentication type, then uses a compatible typed secret source or starts OAuth approval. OAuth can open a browser and poll for completion; --no-open requires the user to follow the URL manually.

Validation ​

The chosen secret type must match the connection: api-key, token, connection-string, username/password or custom JSON. Select only one input source for each secret; environment variables/files must exist and contain a value. For OAuth, no secret-source flag is needed; --no-open only suppresses automatic browser opening.

Examples ​

bash
chainabit connectors auth 00000000-0000-4000-8000-000000000001 --no-open

Built with purpose. chainabit.com