Skip to content

v0.0.52

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 30 Sep 16:03
7d1c69f

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 call pinecone login or pinecone config set-api-key.
  • PINECONE_ENVIRONMENT allows setting either production or staging and avoiding needing to call pinecone 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.

Changelog

  • 7d1c69f Read API key from environment (#17)
  • a9a6066 Support DeletionProtection, index configure command, and bump go-pinecone from v0.5.0 -> v1.1.0 (#16)