terraform/website/docs/cli
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
..
auth website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
code website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
commands command/init: Add a new flag `-lockfile=readonly` (#27630) 2021-03-09 11:12:00 -05:00
config website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
import website: CLI: Remove several ghost pages, update old links 2021-01-22 12:22:21 -08:00
init website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
inspect website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
install Fix apt install typo (#27074) 2020-12-03 10:23:14 -04:00
plugins website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
run website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
state Add State Learn tutorial to State docs 2021-02-22 11:39:18 -05:00
workspaces website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
index.html.md website: CLI: Move docs files to match new URLs 2021-01-22 12:22:21 -08:00