A simple CLI tool to manage some bulk operations for TinyBird API (at this moment, only one operation PUT is supported). The app is built using the cobra CLI framework, and it has the following structure:
├── cmd
│ ├── root.go
│ └── tokens
│ ├── tokens.go
│ └── actions
│ └── put.go
└── main.go
Flag | Short Form | Description |
---|---|---|
--admin-token | -a | Workspace admin token |
--scope | -s | This flag is used to provide a list of scopes (for tokens API) |
According to directory structure app args looks as follows
tinybird-cli [entity] [action] [flags]
The following example illustrates how you can run the CLI tool for bulk update auth tokens and grant access to list of pipes:
tinybird-cli tokens put \
-a=p.eyJ1IjogImUwMGU2NjJjLWQ... \
-s=PIPES:READ:PipeName,PIPES:READ:PipeName2,PIPES:READ:PipeName3 \
go build
tests, build artifacts