.tinyb file

The .tinyb file is a configuration file that contains the Tinybird project configuration, including the authentication token obtained by running tb login.

Running commands requires a valid .tinyb file in the root of your project. If you don't have one, you can create one by running tb auth or tb login.

Location

You can place the .tinyb file in the root of your app repository or keep it together with your Tinybird datafiles. Tinybird looks for the .tinyb file in all parent folders till it reaches the home directory.

File structure

The following is a sample .tinyb file:

Sample .tinyb file
{
    "host": "<tinybird-host>",
    "id": "<workspace-id>",
    "name": "<workspace-name>",
    "scope": "user",
    "token": "<authentication-token>",
    "tokens": {
        "<tinybird-host>": "<authentication-token>",
        "<another-tinybird-host>": "<authentication-token>"
    },
    "user_email": "<user-email>",
    "user_id": "<user-id>",
    "user_token": "<authentication-token>",
    "version": "<tinybird-version>"
}
Updated