Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.61 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.61 KB

tinybird-cli

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

Flags:

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)

Usage

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 \ 

Build

go build

TODO

tests, build artifacts