Astra CLI Overview
The DataStax Astra Command-Line Interface (Astra CLI) is a set of commands that you can use to create and manage Astra resources. Astra CLI commands are available for Astra DB and Astra Streaming. They’re designed to get you working quickly, with an emphasis on automation.
For details, see the Astra CLI documentation.
Astra CLI provides a one-stop shop for managing your Astra resources through scripts or commands in your local Terminal. The wide variety of capabilities include:
-
Creation and management of Astra DB and Astra Streaming artifacts
-
Querying & data loading
-
Organization and user management
-
Security and token configuration
The advantage for you: Astra CLI makes it possible to submit commands instead of, or in addition to, using Astra Portal and DataStax API calls.
Astra CLI features are provided especially for operators, Site Reliability Engineers (SREs), and developers who want the option of using commands when working with Astra DB databases and Astra Streaming tenants.
Two quick examples
Here are two quick Astra CLI command examples to get you oriented.
Let’s create an Astra DB database named demo
from the command line:
astra db create demo -k ks2 --if-not-exist --wait
Now let’s create a Pulsar tenant:
astra streaming create new-tenant-from-cli
Ready to learn more?
See the Astra CLI documentation, which describes the astra db
and astra stream
commands and provides examples you can follow.
Also see our blog post, Accelerate your Cassandra development and automation with the Astra CLI.