datastax-labs / astra-cli Goto Github PK
View Code? Open in Web Editor NEWDataStax Astra automation CLI https://astra.datastax.com
License: Apache License 2.0
DataStax Astra automation CLI https://astra.datastax.com
License: Apache License 2.0
We should never have ./bin/whatever. It is fragile (doesn't work everywhere) and looks immature.
We should get and put the bundle in a specific place (maybe ~/.config/astra/bundle?) or use the .astrarc/.env file
It should be called "astra" not "astra-cli" to match with other cli's out there.
-k, --keyspace string keyspace user to give to the Astra Database
-n, --name string name to give to the Astra Database
these two are actually reversed in meaning
test coverage needs to be at least 80%
https://goreportcard.com/report/github.com/rsds143/astra-cli
mostly code comments
the current progress leaves a lot to be desired and we just get
2021/09/28 15:32:04 waiting
2021/09/28 15:32:35 waiting
replace this with just simple dots I guess?
Add inline login messaging for token generation
Is there really an extra "json" in the output here? It should just be the json file, for piping to jq or whatever.
./bin/astra-cli db get 2c3bc0d6-5e3e-4d77-81c8-d95a35bdc58b -o json
json
{
atm this is pointing to my personal docker account, and as I am leaving the company this is not longer term something that makes sense.
Another alternative is just to remove docker
Ensure we are covering all https://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html endpoints.
need to add schema operations to the tooling and potentially some basic data commands (maybe executing CQL? hard to say)
We should cover the whole range of common tasks - create a db, add a row, create a table, update a row, delete a row, delete a row, delete a table, delete a database.
We should allow for ingestion of a json file with operations to execute.
With home-brew does the executable really go into ./bin?
Most people will have no idea which release they need. Please make a Mac/Linux/Win executable. On first run it should:
do not presently have a command to download the secure connection bundle
this will help make automation even easier for some and certainly make it easier to run workflows in kubernetes
When creating a E-tier cluster in Astra, we often encounter the following error:
$ astra -e dev db create -l AWS -k testks -n clitest -r us-east-1 -t E60
..........................................................................................unable to create '{1 AWS testks clitest <nil> us-east-1 E60 <nil>}' with error waiting for status check on create db failed because 'unable to find db id aae7d687-1083-4c04-915c-fdf79a2cef84 with status [ACTIVE] after 2700 seconds'
This can be easily fixed by allowing it to wait for 1 hour instead of 2700 seconds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.