Astra CLI provides a command line interface in a terminal to operate Datastax Astra. The goal is to offer access to any feature without accessing the user interface. The component is still under development (version 0.1.alpha5
), it will keep moving before the release GA.
The component is still under development (version `0.1.alpha5`)
The extensive documentation will be provided in Awesome Astra
- Install the CLI with
curl -Ls "https://dtsx.io/get-astra-cli" | bash
-
Open a new terminal to enable the autocompletion and add Astra in the path.
-
Enter your token
astra setup
- You are good to go
astra db list
- Generate Jacoco report and push to Coverall
mvn clean test jacoco:report coveralls:report
- Generate Sonar report and push to Coverall
export SONAR_TOKEN=...
mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=clun_astra-cli
- Build the project
mvn clean install
- Run with Agent:
java -agentlib:native-image-agent=config-output-dir=/tmp/native-image -jar target/astra-cli-0.1.1-shaded.jar streaming list-regions
- Build as a native image
mvn clean install -Pnative
- Start the
ssh-agent
eval "$(ssh-agent -s)"
- Add the ssh key to the agent
cd ~/.ssh
ssh-add githubff4j
- Update sources
find . -type f -name *.DS_Store -ls -delete
git pull
git add -A
git commit -m "delivery"
git push
- Release
mvn clean -DskipTests -Darguments=-DskipTests release:prepare release:perform