Skip to content
Compare
Choose a tag to compare
@msmygit msmygit released this 05 Oct 01:14
· 54 commits to main since this release
49e0d55

New Features

  • #130 [vector] List collections for vector database

A new command list-collections is available but will be processed only if target database is vector enabled.

Sample command

astra db list-collections test_astra_cli_vector

Expected output

+------------------------+-----------+-----------+
| Name                   | Dimension | Metric    |
+------------------------+-----------+-----------+
| test_collection_simple |           |           |
| test_collection_vector | 1536      | cosine    |
| demo_vector            | 5         | cosine    |
+------------------------+-----------+-----------+
  • #129 [vector] Display endpoint for the json API

Displaying endpoints for different apis:

Sample command

astra db get-endpoint-api my-db
astra db get-endpoint-swagger my-db
astra db get-endpoint-playground my-db

Expected output

astra db get-endpoint-api my-db
https://93783a2d-2450-422a-8b4e-5dec1b4384fa-westus3.apps.astra.datastax.com/api/json

Note: The command astra db create-dotenv to add the key ASTRA_DB_API_ENDPOINT accordingly

  • #128 [vector] Create a new collection from the CLI

For Vector Databases, you can now create or delete collections

Sample Create

astra db create-collection my-db --collection col1 --dimension 1536 --metric cosine

Sample delete

astra db delete-collection my-db --collection col1 
  • #127 [vector] List vector databases

When listing databases a flag is added for only the vector databases

Sample Create

astra db list --vector

Sample output

+-----------------------+--------------------------------------+-----------+-------+---+-----------+
| Name                  | id                                   | Regions   | Cloud | V | Status    |
+-----------------------+--------------------------------------+-----------+-------+---+-----------+
| test_astra_cli_vector | db7d003e-b9d3-433d-be12-d252b2ed30da | us-east1  | gcp   | ■ | ACTIVE    |
| db_vector             | 93783a2d-2450-422a-8b4e-5dec1b4384fa | westus3   | azure | ■ | ACTIVE    |
+-----------------------+--------------------------------------+-----------+-------+---+-----------+

You want to separate region for astra serverless and regions for vector

List serverless regions

astra db list-regions-serverless

List vector regions

astra db list-regions-vector

BUG Fixes

  • #123 Astra CLI doesn't recognize databases above 25 to be queried via cqlsh
  • #111 Database description in native mode
  • #104 Update to new output from devops api streaming
  • #103 Support of dev and test environments
  • #98 In native token create return an error in the output marshalling
  • #97 In native user invite return a 504
  • #94 Create Tenant failling in native mode

Improvements

  • #117 Support Vector Regions managements with vector
  • #96 setup command does not override the default section is already exists
  • #95 Allow Creation of DB for different tiers (astra Classic)

Maintenance

  • Update all required maven plugins and CVE.

Upgrading

With HomeBrew (Mac Intel Only)

brew upgrade datastax/astra-cli/astra-cli

Manually

curl -Ls "https://dtsx.io/get-astra-cli" | bash