terraform/website/docs/cli/commands
Masayuki Morita 31a5aa1878
command/init: Add a new flag `-lockfile=readonly` (#27630)
Fixes #27506

Add a new flag `-lockfile=readonly` to `terraform init`.
It would be useful to allow us to suppress dependency lockfile changes
explicitly.

The type of the `-lockfile` flag is string rather than bool, leaving
room for future extensions to other behavior variants.

The readonly mode suppresses lockfile changes, but should verify
checksums against the information already recorded. It should conflict
with the `-upgrade` flag.

Note: In the original use-case described in #27506, I would like to
suppress adding zh hashes, but a test code here suppresses adding h1
hashes because it's easy for testing.

Co-authored-by: Alisdair McDiarmid <alisdair@users.noreply.github.com>
2021-03-09 11:12:00 -05:00
..
providers website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
state docs: Note: state pull upgrades to current version 2021-01-25 10:31:11 -05:00
workspace Update grammar for flags 2021-01-26 11:35:44 -05:00
0.12upgrade.html.md
0.13upgrade.html.md
apply.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
console.html.md
destroy.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
env.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
fmt.html.md
force-unlock.html.md
get.html.md
graph.html.md cli: Remove positional plan argument from graph 2021-02-02 13:21:26 -05:00
import.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
index.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
init.html.md command/init: Add a new flag `-lockfile=readonly` (#27630) 2021-03-09 11:12:00 -05:00
login.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
logout.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
output.html.md
plan.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
providers.html.md
push.html.md
refresh.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
show.html.md update show -json docs 2021-02-23 11:45:50 -05:00
taint.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
test.html.md website: Initial docs for the module integration testing experiment 2021-02-22 14:21:45 -08:00
untaint.html.md Remove -module option for taint and untaint 2021-01-25 18:19:17 -05:00
validate.html.md
version.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00