No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd Merge branch 'master' of github.com:ariarijp/redashman Dec 22, 2017
redash Add "admin tasks" command Nov 12, 2017
scripts Increase PAGE_SIZE Dec 23, 2017
LICENSE First commit Nov 11, 2017
README.md Fix README Nov 24, 2017
main.go First commit Nov 11, 2017

README.md

redashman

redashman is a query management tool for Redash

Installation

$ go get -u github.com/ariarijp/redashman

Usage

$ export REDASH_URL=http://localhost:5000
$ export REDASH_API_KEY=YOUR_API_KEY
$ 
$ # List queries
$ redashman query list 100 1 --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Show a query
$ redashman query show 1 --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Create a new query with text from a file
$ echo "SELECT NOW();" > new_query.sql
$ redashman query create new_query.sql --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Modify a query with text from a file
$ echo "SELECT NOW(), CURDATE();" > modified_query.sql
$ redashman query modify 1 modified_query.sql --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Fork a query from an existing one
$ redashman query fork 1 --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Archive a query
$ redashman query archive 1 --url $REDASH_URL --api-key $REDASH_API_KEY

License

MIT

Author

ariarijp