Skip to content

Commit d1e8537

Browse files
committed
website: CLI: Update links to moved docs pages
1 parent a833270 commit d1e8537

67 files changed

Lines changed: 150 additions & 150 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎website/docs/cli/auth/index.html.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ Terraform Cloud user account.
2525

2626
For details, see:
2727

28-
- [The `terraform login` command](/docs/commands/login.html)
29-
- [The `terraform logout` command](/docs/commands/logout.html)
28+
- [The `terraform login` command](/docs/cli/commands/login.html)
29+
- [The `terraform logout` command](/docs/cli/commands/logout.html)

‎website/docs/cli/code/index.html.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ Terraform CLI includes several commands to make Terraform code more convenient
1313
to work with. Integrating these commands into your editing workflow can
1414
potentially save you time and effort.
1515

16-
- [The `terraform console` command](/docs/commands/console.html) starts an
16+
- [The `terraform console` command](/docs/cli/commands/console.html) starts an
1717
interactive shell for evaluating Terraform
1818
[expressions](/docs/language/expressions/index.html), which can be a faster way
1919
to verify that a particular resource argument results in the value you expect.
2020

2121

22-
- [The `terraform fmt` command](/docs/commands/fmt.html) rewrites Terraform
22+
- [The `terraform fmt` command](/docs/cli/commands/fmt.html) rewrites Terraform
2323
configuration files to a canonical format and style, so you don't have to
2424
waste time making minor adjustments for readability and consistency. It works
2525
well as a pre-commit hook in your version control system.
2626

27-
- [The `terraform validate` command](/docs/commands/validate.html) validates the
27+
- [The `terraform validate` command](/docs/cli/commands/validate.html) validates the
2828
syntax and arguments of the Terraform configuration files in a directory,
2929
including argument and attribute names and types for resources and modules.
3030
The `plan` and `apply` commands automatically validate a configuration before
3131
performing any other work, so `validate` isn't a crucial part of the core
3232
workflow, but it can be very useful as a pre-commit hook or as part of a
3333
continuous integration pipeline.
3434

35-
- [The `0.13upgrade` command](/docs/commands/0.13upgrade.html) and
36-
[the `0.12upgrade` command](/docs/commands/0.12upgrade.html) can automatically
35+
- [The `0.13upgrade` command](/docs/cli/commands/0.13upgrade.html) and
36+
[the `0.12upgrade` command](/docs/cli/commands/0.12upgrade.html) can automatically
3737
modify the configuration files in a Terraform module to help deal with major
3838
syntax changes that occurred in the 0.13 and 0.12 releases of Terraform. Both
3939
of these commands are only available in the Terraform version they are

‎website/docs/cli/commands/apply.html.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ The command-line flags are all optional. The list of available flags are:
6666
[remote state](/docs/language/state/remote.html) is used.
6767

6868
* `-target=resource` - A [Resource
69-
Address](/docs/internals/resource-addressing.html) to target. For more
69+
Address](/docs/cli/state/resource-addressing.html) to target. For more
7070
information, see
71-
[the targeting docs from `terraform plan`](/docs/commands/plan.html#resource-targeting).
71+
[the targeting docs from `terraform plan`](/docs/cli/commands/plan.html#resource-targeting).
7272

7373
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This flag
7474
can be set multiple times. Variable values are interpreted as
@@ -100,6 +100,6 @@ current working directory.
100100
If your previous use of this legacy pattern was also relying on Terraform
101101
writing the `.terraform` subdirectory into the current working directory even
102102
though the root module directory was overridden, use
103-
[the `TF_DATA_DIR` environment variable](environment-variables.html#tf_data_dir)
103+
[the `TF_DATA_DIR` environment variable](/docs/cli/config/environment-variables.html#tf_data_dir)
104104
to direct Terraform to write the `.terraform` directory to a location other
105105
than the current working directory.

‎website/docs/cli/commands/destroy.html.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Infrastructure managed by Terraform will be destroyed. This will ask for
1919
confirmation before destroying.
2020

2121
This command accepts all the arguments and options that the [apply
22-
command](/docs/commands/apply.html) accepts, with the exception of a plan file
22+
command](/docs/cli/commands/apply.html) accepts, with the exception of a plan file
2323
argument.
2424

2525
If `-auto-approve` is set, then the destroy confirmation will not be shown.
2626

2727
The `-target` flag, instead of affecting "dependencies" will instead also
28-
destroy any resources that _depend on_ the target(s) specified. For more information, see [the targeting docs from `terraform plan`](/docs/commands/plan.html#resource-targeting).
28+
destroy any resources that _depend on_ the target(s) specified. For more information, see [the targeting docs from `terraform plan`](/docs/cli/commands/plan.html#resource-targeting).
2929

3030
The behavior of any `terraform destroy` command can be previewed at any time
3131
with an equivalent `terraform plan -destroy` command.

‎website/docs/cli/commands/env.html.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ description: |-
99
# Command: env
1010

1111
The `terraform env` command is deprecated.
12-
[The `terraform workspace` command](/docs/commands/workspace/)
12+
[The `terraform workspace` command](/docs/cli/commands/workspace/index.html)
1313
should be used instead.

‎website/docs/cli/commands/import.html.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: |-
1111
> **Hands-on:** Try the [Import Terraform Configuration](https://learn.hashicorp.com/tutorials/terraform/state-import?in=terraform/state&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn.
1212
1313
The `terraform import` command is used to
14-
[import existing resources](/docs/import/index.html)
14+
[import existing resources](/docs/cli/import/index.html)
1515
into Terraform.
1616

1717
## Usage
@@ -21,7 +21,7 @@ Usage: `terraform import [options] ADDRESS ID`
2121
Import will find the existing resource from ID and import it into your Terraform
2222
state at the given ADDRESS.
2323

24-
ADDRESS must be a valid [resource address](/docs/internals/resource-addressing.html).
24+
ADDRESS must be a valid [resource address](/docs/cli/state/resource-addressing.html).
2525
Because any resource address is valid, the import command can import resources
2626
into modules as well as directly into the root of your state.
2727

‎website/docs/cli/commands/index.html.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ will be read or written in the given directory instead.
101101
There are two exceptions where Terraform will use the original working directory
102102
even when you specify `-chdir=...`:
103103

104-
* Settings in the [CLI Configuration](cli-config.html) are not for a specific
104+
* Settings in the [CLI Configuration](/docs/cli/config/config-file.html) are not for a specific
105105
subcommand and Terraform processes them before acting on the `-chdir`
106106
option.
107107

@@ -154,7 +154,7 @@ Checkpoint itself can be entirely disabled for all HashiCorp products by
154154
setting the environment variable `CHECKPOINT_DISABLE` to any non-empty value.
155155

156156
Alternatively, settings in
157-
[the CLI configuration file](/docs/commands/cli-config.html) can be used to
157+
[the CLI configuration file](/docs/cli/config/config-file.html) can be used to
158158
disable checkpoint features. The following checkpoint-related settings are
159159
supported in this file:
160160

‎website/docs/cli/commands/init.html.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ third-party provider registry, `terraform init` will automatically find,
123123
download, and install the necessary provider plugins. If you cannot or do not
124124
wish to install providers from their origin registries, you can customize how
125125
Terraform installs providers using
126-
[the provider installation settings in the CLI configuration](./cli-config.html#provider-installation).
126+
[the provider installation settings in the CLI configuration](/docs/cli/config/config-file.html#provider-installation).
127127

128128
For more information about specifying which providers are required for each
129129
of your modules, see [Provider Requirements](/docs/language/providers/requirements.html).
@@ -145,15 +145,15 @@ You can modify `terraform init`'s plugin behavior with the following options:
145145
- `-get-plugins=false` — Skip plugin installation.
146146

147147
-> Note: Since Terraform 0.13, this option has been superseded by the
148-
[`provider_installation`](./cli-config.html#provider-installation) and
149-
[`plugin_cache_dir`](./cli-config.html#plugin_cache_dir) settings.
148+
[`provider_installation`](/docs/cli/config/config-file.html#provider-installation) and
149+
[`plugin_cache_dir`](/docs/cli/config/config-file.html#plugin_cache_dir) settings.
150150
It should not be used in Terraform versions 0.13+, and this option
151151
was removed in Terraform 0.15.
152152
- `-plugin-dir=PATH` — Force plugin installation to read plugins _only_ from
153153
the specified directory, as if it had been configured as a `filesystem_mirror`
154154
in the CLI configuration. If you intend to routinely use a particular
155155
filesystem mirror then we recommend
156-
[configuring Terraform's installation methods globally](./cli-config.html#provider-installation).
156+
[configuring Terraform's installation methods globally](/docs/cli/config/config-file.html#provider-installation).
157157
You can use `-plugin-dir` as a one-time override for exceptional situations,
158158
such as if you are testing a local build of a provider plugin you are
159159
currently developing.
@@ -187,6 +187,6 @@ current working directory.
187187
If your previous use of this legacy pattern was also relying on Terraform
188188
writing the `.terraform` subdirectory into the current working directory even
189189
though the root module directory was overridden, use
190-
[the `TF_DATA_DIR` environment variable](environment-variables.html#tf_data_dir)
190+
[the `TF_DATA_DIR` environment variable](/docs/cli/config/environment-variables.html#tf_data_dir)
191191
to direct Terraform to write the `.terraform` directory to a location other
192192
than the current working directory.

‎website/docs/cli/commands/login.html.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ API token for Terraform Cloud, Terraform Enterprise, or any other host that offe
1515
where it is possible to launch a web browser on the same host where Terraform
1616
is running. If you are running Terraform in an unattended automation scenario,
1717
you can
18-
[configure credentials manually in the CLI configuration](https://www.terraform.io/docs/commands/cli-config.html#credentials).
18+
[configure credentials manually in the CLI configuration](https://www.terraform.io/docs/cli/config/config-file.html#credentials).
1919

2020
## Usage
2121

@@ -34,7 +34,7 @@ not as desired.
3434

3535
If you don't wish to store your API token in the default location, you can
3636
optionally configure a
37-
[credentials helper program](cli-config.html#credentials-helpers) which knows
37+
[credentials helper program](/docs/cli/config/config-file.html#credentials-helpers) which knows
3838
how to store and later retrieve credentials in some other system, such as
3939
your organization's existing secrets management system.
4040

‎website/docs/cli/commands/logout.html.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ the remote server, so it will remain valid until manually revoked.
2626

2727
By default, Terraform will remove the token stored in plain text in a local CLI
2828
configuration file called `credentials.tfrc.json`. If you have configured a
29-
[credentials helper program](cli-config.html#credentials-helpers), Terraform
29+
[credentials helper program](/docs/cli/config/config-file.html#credentials-helpers), Terraform
3030
will use the helper's `forget` command to remove it.

0 commit comments

Comments
 (0)