Thanks to visit codestin.com
Credit goes to github.com

Skip to content

datastax/astra-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astra CLI

License Apache2 Latest Release

Security Rating Reliability Rating Maintainability Rating Vulnerabilities Bugs

Coverage Lines of Code downloads

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`)

Getting started

The extensive documentation will be provided in Awesome Astra

QuickStart

  • 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

Development Commands

  • 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

Deploy

  • 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

About

Command Line Interface for DataStax Astra

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages