commands.sh

pulumi refresh

all

Refresh the resources in a stack.

More info →

Options (2)

-s, --stackboolean

The name of the stack to operate on (defaults to the current stack)

Example: pulumi refresh {{[-s|--stack]}} {{stack_name}}
-h, --helpboolean

Display help

Example: pulumi refresh {{[-h|--help]}}

Examples (6)

Compare the current stack's state with the state in the cloud provider and adopt any changes into the current stack

Refresh resources in the current stack and show the operation as a rich 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 [-s|--stack] stack_name

Display help

pulumi refresh [-h|--help]
made by @shridhargupta | data from tldr-pages