astra-cli
astra-cli copied to clipboard
[Feature] - Add new option to collection creation
Astra CLI can create collection but we need new options to be provided:
| Field | description |
|---|---|
keyspace |
Keyspace, if not provided defaulting to default_keyspace |
collection |
Name of the collection |
embedding-provider |
Associate to vectorize, embedding provider |
embedding-model |
Associate to vectorize, embedding model |
dimension |
Vector dimension |
indexing-allow |
List of fields to include in indexing |
indexing-deny |
List of fields to exclude from indexing |
default-id |
Default Id in the collection , accepted values are objectid, uuidv6,uuidv7,uuid |
astra db create-collection mydb \
--keyspace default_keyspace
--collection collection1 \
--embedding-provider openai \
--embedding-model text-embedding-3-small \
--dimension 1536
--indexing-allow a,b,c
--indexing-deny d,e,f
--default-id uuid