From 9ead98f53cd18f2ca168721d7c461253f2b0fc80 Mon Sep 17 00:00:00 2001 From: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com> Date: Sun, 2 Mar 2025 23:07:42 -0800 Subject: [PATCH] pulumi-refresh: add page (#15814) --- pages/common/pulumi-refresh.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/pulumi-refresh.md diff --git a/pages/common/pulumi-refresh.md b/pages/common/pulumi-refresh.md new file mode 100644 index 0000000000..8426650fa0 --- /dev/null +++ b/pages/common/pulumi-refresh.md @@ -0,0 +1,28 @@ +# pulumi refresh + +> Refresh the resources in a stack. +> More information: . + +- Compare the current stack's state with the state in the cloud provider and adopt any changes into the current stack: + +`pulumi refresh` + +- Refresh resources in the current stack and show the operation as a rich diff: + +`pulumi refresh --diff` + +- Refresh resources in the current stack and return an error if any changes occur during the refresh: + +`pulumi refresh --expect-no-changes` + +- Only show a preview of the refresh, but don't perform the refresh itself: + +`pulumi refresh --preview-only` + +- The name of the stack to operate on (defaults to the current stack): + +`pulumi refresh --stack {{stack_name}}` + +- Display help: + +`pulumi refresh --help`