Added script to automate fetching Tinybird tokens#14
Merged
Conversation
cmraible
commented
Jul 9, 2025
138544d to
0bfb32c
Compare
Member
|
@cmraible I've taken this for a spin today and it worked really well! I've tweaked it and updated the instructions so that it greatly simplifies the initial setup. Are you able to have a look and see what you think and if you're happy to merge? |
cmraible
commented
Jul 14, 2025
Contributor
Author
|
@jloh LGTM! Left a tiny optional comment based on something new I learned today. Github won't let me approve the PR since I'm the author, but it all looks good (and worked for me) from my end. |
no ref - By outputting the tokens in the format the `.env` file expects this greatly simplifies the initial setup by just makign it copy -> paste able - This will mean users don't need to load up the UI and copy/paste tokens at all and can do the whole setup (after they've signed up for TB) from the CLI
7c4c1b6 to
ebe9c30
Compare
no ref - As Chris notes this isn't actually required when doing the initial setup/mentioning the specific container you want to deploy - This standardises us in just doing the `--rm run` command for all of them to keep everything nice and neat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the setup steps for Tinybird are quite tedious and manual, requiring the user to copy/paste multiple values from the CLI and/or Tinybird Workspace UI.
This commit adds a simple script that grabs these values from the
.tinybfile that's generated when authenticating with thetbCLI and from Tinybird's tokens API. The script outputs all the values in a format that's ready to be copy/pasted into a.envfile, removing a couple of the more tedious and error prone steps from the setup instructions.