Deletion Protection and Configuring Indexes
The Pinecone CLI now supports the ability to configure indexes with deletionProtection
enabled. The pinecone index configure
command has also been added to support configuring indexes after creation.
pinecone index list
pinecone index create-pod -n "test-cli-create-pod" -d 3 -m "cosine" -e "us-east-1-aws" -t "p1.x1" --deletion_protection "enabled"
pinecone index configure -n "test-cli-create_pod" -p "disabled"
pinecone index describe --name test-cli-create-pod
PINECONE_API_KEY
and PINECONE_ENVIRONMENT
The CLI also now supports additional environment variables for configuration:
PINECONE_API_KEY
will be read from the environment and allow interacting with indexes and collections without needing to callpinecone login
orpinecone config set-api-key
.PINECONE_ENVIRONMENT
allows setting eitherproduction
orstaging
and avoiding needing to callpinecone config set-environment
.
For both of the above configuration values, if there is an environment variable set and you call the corresponding pinecone config
command, it will override whatever is set in the environment.