Skip to main content

wf diff

wf diff

Allows you to see a diff between the existing and supplied resource


Shows the differences between the existing objects and those from the provided files / directories in a yaml format.

wf diff [flags]


# Show the diff of all configuration objects in the current directory
$ wf diff --file ./


      --fail-on-diff         If true gives an error exit code (1) if any diffs are found, Default: 'false'
-f, --file PATH path to file containing resource definition/s ('-' for stdin) PATH
-h, --help help for diff
--owner string Sets the owner on the diffed resources to the provided value
--prune When specified with --owner, shows what resources would be removed if apply is run with --prune on the given files. If used outside the scope of a workspace, must be combined with --prune-scope.
--prune-scope string Must be specified when using --prune without --workspace. Valid values are 'platform' (prunes non-workspaced objects) or 'all' (prunes objects in all workspaces and non-workspaced objects)

Options inherited from parent commands

      --debug              Debug / trace logging (default: false)
--force Force operation to happen (default: false)
--no-wait Do not wait for resources to provision
-o, --output string Output format of the resource (json,yaml,table,template) (default "table")
--profile string Use a profile other than your current - to change current: wf use profile NAME
--show-headers Display headers on table out (default true)
--verbose Verbose logging (default: false)
-w, --workspace string Workspace to use


  • wf - CLI interface for Wayfinder