tfc-cli

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 3 Imported by: 0

README

Terraform Cloud CLI

A command line utility for interfacing with Terraform Cloud. Uses tfe-go under the hood.

Tests

Available Commands

Create a workspace:

tfc-cli workspaces create -workspace foo

Create a workspace variable:

tfc-cli workspaces variables create -workspace foo -key bar -value baz -category terraform

Update a workspace variable value:

tfc-cli workspaces variables update value -workspace foo -key bar -value quux

Make a workspace variable sensitive:

tfc-cli workspaces variables update sensitive -workspace foo -key bar -sensitive=true

Note the -sensitive=<bool> syntax. This is required.

Delete a workspace variable:

tfc-cli workspaces variables delete -workspace foo -key bar

Get current state output variable value:

tfc-cli stateversions current getoutput -workspace foo -name bar

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL