1. Docs
  2. Pulumi IaC
  3. Pulumi CLI
  4. Commands
  5. pulumi watch

pulumi watch

    Continuously update the resources in a stack

    Synopsis

    [EXPERIMENTAL] Continuously update the resources in a stack.

    This command watches the working directory or specified paths for the current project and updates the active stack whenever the project changes. In parallel, logs are collected for all resources in the stack and displayed along with update progress.

    The program to watch is loaded from the project in the current directory by default. Use the -C or --cwd flag to use a different directory.

    pulumi watch [flags]
    

    Options

      -c, --config stringArray           Config to use during the update
          --config-file string           Use the configuration values in the specified file rather than detecting the file name
          --config-path                  Config keys contain a path to a property in a map or list to set
      -d, --debug                        Print detailed debugging output during resource operations
      -h, --help                         help for watch
      -m, --message string               Optional message to associate with each update operation
      -p, --parallel int32               Allow P resource operations to run in parallel at once (1 for no parallelism). (default 16)
          --path stringArray             Specify one or more relative or absolute paths that need to be watched. A path can point to a folder or a file. Defaults to working directory
          --policy-pack strings          Run one or more policy packs as part of each update
          --policy-pack-config strings   Path to JSON file containing the config for the policy pack of the corresponding "--policy-pack" flag
      -r, --refresh                      Refresh the state of the stack's resources before each update
          --secrets-provider string      The type of the provider that should be used to encrypt and decrypt secrets (possible choices: default, passphrase, awskms, azurekeyvault, gcpkms, hashivault). Only used when creating a new stack from an existing template (default "default")
          --show-config                  Show configuration keys and variables
          --show-replacement-steps       Show detailed resource replacement creates and deletes instead of a single step
          --show-sames                   Show resources that don't need be updated because they haven't changed, alongside those that do
      -s, --stack string                 The name of the stack to operate on. Defaults to the current stack
    

    Options inherited from parent commands

          --color string                 Colorize output. Choices are: always, never, raw, auto (default "auto")
      -C, --cwd string                   Run pulumi as if it had been started in another directory
          --disable-integrity-checking   Disable integrity checking of checkpoint files
      -e, --emoji                        Enable emojis in the output
      -Q, --fully-qualify-stack-names    Show fully-qualified stack names
          --logflow                      Flow log settings to child processes (like plugins)
          --logtostderr                  Log to stderr instead of to files
          --memprofilerate int           Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate
          --non-interactive              Disable interactive mode for all commands
          --profiling string             Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively
          --tracing file:                Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
      -v, --verbose int                  Enable verbose logging (e.g., v=3); anything >3 is very verbose
    

    SEE ALSO

    Auto generated by spf13/cobra on 8-Oct-2024
      PulumiUP 2024. Watch On Demand.