Skip to main content

A CLI to the Terraform Cloud API

Project description

TF Cloud CLI

A simple CLI for interacting with the Terraform Cloud API.

Currently only supports listing organizations, workspaces and updating the run mode for workspaces


pip install tf-cloud-cli

Token Setup

Get an API token from the Terraform cloud app.

Token can either be set in an environment variable called TF_TOKEN or in a file named .credentials.conf


tf_cloud_cli --help                                                                                                                                                                                         <aws:sensurance>
Usage: tf_cloud_cli [OPTIONS] COMMAND [ARGS]...

  --help  Show this message and exit.


List Organizations

tf_cloud_cli list-organizations

List Workspaces

tf_cloud_cli organization -o MyOrganization list-workspaces

Show workspace details

tf_cloud_cli organization -o MyOrganization workspace -w my-workspace show

Set local execution for workspace

tf_cloud_cli organization -o MyOrganization workspace -w my-workspace set-local-execution

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tf-cloud-cli, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size tf_cloud_cli-0.0.2-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tf_cloud_cli-0.0.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page