Skip to main content

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!

  1. Install pipx
    python3 -m pip install --user pipx
    
  2. Run:
    python3 -m pipx install git+ssh://git@github.com/griptape-ai/griptape-cli.git
    
  3. 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)

Uploaded Source

Built Distribution

griptape_cli-0.1.0-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page