tb connection

Manage your data connections. Global options apply to this command. See Global options.

Connections are configured through .connection files. See Connection files.

Subcommands

The following subcommands are available:

SubcommandDescription
create TYPECreate a new connection. Supported values are: kafka, gcs, s3, and dynamodb.
lsLists all connections in the project.

tb connection create kafka

Creates a Kafka connection.

OptionDescription
--connection-name TEXTThe name of the connection to identify it in Tinybird.
--bootstrap-servers TEXTKafka bootstrap server in the form mykafka.mycloud.com:9092.
--key TEXTKey or user.
--secret TEXTSecret or password.
--auto-offset-reset TEXTOffset reset. Can be latest or earliest. Default: latest.
--schema-registry-url TEXTAvro Confluent Schema Registry URL.
--sasl-mechanism TEXTAuthentication method for connection-based protocols. Default: PLAIN.
--security-protocol TEXTSecurity protocol for connection-based protocols. Default: SASL_SSL.
--ssl-ca-pem TEXTPath or content of the CA certificate file in PEM format.
--oauthbearer-aws-external-id TEXTPre-shared external ID for the AWS assume-role call. Only for OAUTHBEARER with AWS.

tb connection ls

Lists connections.

OptionDescription
--service TEXTFilter by service.

Environment support

EnvironmentSupportedDescription
--local✓ Yes (default)Manages connections in Tinybird Local.
--cloud✓ YesManages connections in Tinybird Cloud.
--branch=BRANCH_NAME✓ YesManages connections in a branch.
Updated