Skip to content

Commit da19621

Browse files
fix: Workspace-id to workspace
1 parent 7787831 commit da19621

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/ctrlc/root/sync/terraform/terraform.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewSyncTerraformCmd() *cobra.Command {
2727
export TFE_ADDRESS=... else the default address (https://app.terraform.io) is used.
2828
2929
# Sync all workspaces in an organization
30-
$ ctrlc sync terraform --organization my-org --workspace-id 2a7c5560-75c9-4dbe-be74-04ee33bf8188
30+
$ ctrlc sync terraform --organization my-org --workspace 2a7c5560-75c9-4dbe-be74-04ee33bf8188
3131
`),
3232
RunE: func(cmd *cobra.Command, args []string) error {
3333
fmt.Println("Syncing Terraform resources into Ctrlplane")
@@ -110,7 +110,7 @@ func NewSyncTerraformCmd() *cobra.Command {
110110
}
111111

112112
cmd.Flags().StringVarP(&organization, "organization", "o", "", "Terraform organization name")
113-
cmd.Flags().StringVarP(&workspaceId, "workspace-id", "w", "", "Ctrlplane workspace ID")
113+
cmd.Flags().StringVarP(&workspaceId, "workspace", "w", "", "Ctrlplane workspace ID")
114114

115115
return cmd
116116
}

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ In order to sync Terraform resources into Ctrlplane, you need to set the followi
3636

3737
```sh
3838
docker run -e TFE_TOKEN=my-token -e CTRLPLANE_API_KEY=my-api-key -e CTRLPLANE_URL=https://app.ctrlplane.dev \
39-
ctrlplane/cli ctrlc sync terraform --organization my-org --workspace-id 2a7c5560-75c9-4dbe-be74-04ee33bf8188
39+
ctrlplane/cli ctrlc sync terraform --organization my-org --workspace 2a7c5560-75c9-4dbe-be74-04ee33bf8188
4040
```

0 commit comments

Comments
 (0)