CLI for the Griptape Framework and Cloud
Project description
Griptape CLI
CLI for the Griptape Framework and Cloud.
Can I Just Install the CLI?
Sure!
- Install pipx
python3 -m pip install --user pipx
- Run:
python3 -m pipx install git+ssh://git@github.com/griptape-ai/griptape-cli.git
- Verify installation
gt --help
Development
poetry install
poetry run gt
Tests
poetry run pytest
Griptape Cloud
Set environment variables:
export GRIPTAPE_CLOUD_API_KEY=<api_key>
Note: You can create an API Key using the frontend.
To override the Griptape Cloud endpoint used, set the following environment variable:
export GRIPTAPE_CLOUD_ENDPOINT_URL="https://<endpoint>"
Configure the Cloud:
poetry run gt cloud configure
Use the cloud command to make API calls:
poetry run gt cloud list-organizations
Create an App from the template using the app command:
poetry run gt app new --directory ~/workplace demo_app
Test an App locally:
poetry run gt app run --directory ~/workplace/demo_app --arg "what is griptape?"
Create an App on the Cloud:
poetry run gt cloud create-app --name "Demo App"
Create a Deployment for the App on the Cloud using the App ID:
poetry run gt cloud create-deployment --app-id ee95ba10-9e29-4759-b357-dc513821c5b2 --directory ~/workplace/demo_app
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
griptape_cli-0.1.0.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for griptape_cli-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d64799649c5d4a5b9b8d0a9b570040fa7606eca6a434cc4e3ca3fded1c6d244e |
|
MD5 | 2db5ce1cb73bcc33998539edf18cd7bb |
|
BLAKE2b-256 | 2034ef4f30a540617abbe5ddc653c7f8d1bc3fec479e029749c3f157182e7466 |