{"id":16048590,"url":"https://github.com/rgreinho/tfe-cli","last_synced_at":"2025-03-17T16:31:40.709Z","repository":{"id":37942316,"uuid":"247107242","full_name":"rgreinho/tfe-cli","owner":"rgreinho","description":"CLI client for Terraform enterprise","archived":false,"fork":false,"pushed_at":"2023-06-19T22:56:49.000Z","size":244,"stargazers_count":25,"open_issues_count":5,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-10T00:09:00.778Z","etag":null,"topics":["cli","go","terraform-enterprise"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgreinho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-13T15:47:01.000Z","updated_at":"2024-09-12T23:36:12.000Z","dependencies_parsed_at":"2024-06-20T11:21:47.952Z","dependency_job_id":null,"html_url":"https://github.com/rgreinho/tfe-cli","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgreinho%2Ftfe-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgreinho%2Ftfe-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgreinho%2Ftfe-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgreinho%2Ftfe-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgreinho","download_url":"https://codeload.github.com/rgreinho/tfe-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221696817,"owners_count":16865494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","terraform-enterprise"],"created_at":"2024-10-09T00:09:07.809Z","updated_at":"2024-10-27T15:17:36.550Z","avatar_url":"https://github.com/rgreinho.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tfe-cli\n\nCLI client for Terraform Enterprise.\n\n## Installation\n\nFor Linux/OSX, run the following command from a terminal to get the latest version:\n\n```bash\nbash \u003c(curl -sSfL https://raw.githubusercontent.com/rgreinho/tfe-cli/master/extras/tfe-cli-installer.sh)\n```\n\nFor Windows, download the binary from the [release page](https://github.com/rgreinho/tfe-cli/releases).\n\n## Environment variables\n\n* `TFE_TOKEN`: Terraform Enterprise API token\n* `TFE_ORG`: Terraform Enterprise organization\n* `TFE_LOG_LEVEL`: Logging level (valid values are `debug`, `info`, `warn`, `error`,\n  `fatal`, `panic`)\n* `TFE_ADDRESS`: Terraform Enterprise API address\n* `TFE_BASEPATH`: Base path on which the Terraform Enterprise API is served.\n\nSome of these values can also be specified on the command line. In this case, the\nenvironment variables are ignored.\n\n## Management commands\n\nBy default, `tfe-cli` does not display anything if a command succeeds (unless a result\nis expected, like listing the workspaces for instance). The verbosity can be adjusted\nby setting the log level accordingly.\n\n### Workspaces\n\nManage workspaces for an organization.\n\n#### Create\n\nCreate a new TFE workspace.\n\nThe format of the VCS option is string of colon sperated values: `\u003cOAuthTokenID\u003e:\u003crepository\u003e:\u003cbranch\u003e`.\n\n##### Examples\n\nCreate a new workspace with default values:\n\n```bash\ntfe-cli workspace create my-new-workspace\n```\n\nSetup the VCS Repository:\n\n```bash\ntfe-cli workspace create my-new-workspace --vcsrepository ot-8Xc1NTYpjIQZIwIh:organization/repository:master\n```\n\n#### Delete\n\nDelete an exisiting workspace.\n\n##### Example\n\n```bash\ntfe-cli workspace delete my-new-workspace\n```\n\n#### List\n\nList existing workspaces in the organization.\n\n##### Example\n\n```bash\ntfe-cli workspace list\n```\n\n### Variables\n\nManage variables for a workspace.\n\n#### Create\n\n##### Examples\n\nCreate a new variable into a specific workspace:\n\n```bash\ntfe-cli variable create exisiting-workspace --var akey=a_value\n```\n\nUpdate an existing variable in a specific workspace:\n\n```bash\ntfe-cli variable create my-exisiting-workspace -f --var akey=another_value\n```\n\nWhen creating/updating variables, several of them of can be specified at the\nsame time:\n\n```bash\ntfe-cli variable create my-exisiting-workspace \\\n  --var akey=a_value \\\n  --svar bkey=b_secure_value \\\n  --hvar hclkey=hcl_value \\\n  --var-file stage.tfvars \\\n```\n\n#### Delete\n\n##### Example\n\nDelete a variable:\n\n```bash\ntfe-cli variable delete my-workspace backend_port\n```\n\n#### List\n\nList exisitng variables for a specific workspace.\n\n##### Example\n\nList variables:\n\n```bash\ntfe-cli variable list my-workspace\n```\n\n### Notifications\n\n#### List\n\nList TFE notifications for a specific workspace.\n\n##### Example\n\n```bash\ntfe-cli notification list my-workspace\n```\n\n#### Create\n\nCreates or update a notification.\n\n##### Example\n\nCreate a Slack notification for the `created` and `errored` events:\n\n```bash\ntfe-cli notification create my-workspace \\\n  my-notification \\\n  --type slack \\\n  --url https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX \\\n  --triggers run:created \\\n  --triggers run:errored\n```\n\n#### Delete\n\nDeletes a notification by its name, in a specific workspace.\n\n##### Example\n\n```bash\ntfe-cli notification delete my-workspace my-notification\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgreinho%2Ftfe-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgreinho%2Ftfe-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgreinho%2Ftfe-cli/lists"}