{"version":"0.3.7","commands":{"dashboard:one":{"id":"dashboard:one","description":"Returns a collection of dashboard query pngs","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli dashboard:one my-dashboard-slug"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false}},"args":[{"name":"slug","description":"dashboard slug","required":true}]},"dashboard:snapshot":{"id":"dashboard:snapshot","description":"Returns a collection of dashboard query pngs","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli dashboard:snapshot my-dashboard-slug ./local/snapshots/directory"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false},"max_age":{"name":"max_age","type":"option","char":"a","description":"max age (seconds) for cached result","default":86400},"width":{"name":"width","type":"option","char":"x","description":"snapshot width","default":1200},"height":{"name":"height","type":"option","char":"y","description":"snapshot height","default":900}},"args":[{"name":"slug","description":"dashboard slug","required":true},{"name":"path","description":"directory path for snapshot png","required":true}]},"query:job":{"id":"query:job","description":"Returns queries Job status object","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli query:job 1234"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false}},"args":[{"name":"jobId","description":"job id","required":true}]},"query:many":{"id":"query:many","description":"Returns a paginated array of query objects","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli query:many"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false},"page_size":{"name":"page_size","type":"option","char":"s","description":"page size","default":25},"page":{"name":"page","type":"option","char":"p","description":"page index","default":1},"query":{"name":"query","type":"option","char":"q","description":"search query string"}},"args":[]},"query:one":{"id":"query:one","description":"Returns a a single query object","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli query:one 1234"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false}},"args":[{"name":"queryId","description":"query id","required":true}]},"query:snapshot":{"id":"query:snapshot","description":"Returns a query chart as png","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli query:snapshot 1234 5678 ./local/snapshots/directory"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false},"width":{"name":"width","type":"option","char":"x","description":"snapshot width","default":800},"height":{"name":"height","type":"option","char":"y","description":"snapshot height","default":600}},"args":[{"name":"queryId","description":"query id","required":true},{"name":"visualizationId","description":"visualization id","required":true},{"name":"path","description":"directory path for snapshot png","required":true}]},"query:update":{"id":"query:update","description":"Updates query and returns result","pluginName":"redash-cli","pluginType":"core","aliases":[],"examples":["$ redash-cli query:update 1234 \"{number_param:0,date_param:\"2020-01-01\"}\"","$ redash-cli query:update 1234 --json > output.json"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"api (query) token"},"hostname":{"name":"hostname","type":"option","char":"n","description":"redash hostname","default":"https://redash.io"},"json":{"name":"json","type":"boolean","description":"only output JSON response","allowNo":false},"max_age":{"name":"max_age","type":"option","char":"m","description":"max age of query result","default":0}},"args":[{"name":"queryId","description":"query id","required":true},{"name":"parameters","description":"query parameters","required":false}]}}}