diff --git a/.changelog/4143.txt b/.changelog/4143.txt new file mode 100644 index 00000000000..085b29c405d --- /dev/null +++ b/.changelog/4143.txt @@ -0,0 +1,3 @@ +```release-note:improvement +cli/config-sync: Add operations flags to `config sync` command. +``` diff --git a/internal/cli/config_sync.go b/internal/cli/config_sync.go index eb76fe542d8..fe10e52edd0 100644 --- a/internal/cli/config_sync.go +++ b/internal/cli/config_sync.go @@ -75,7 +75,7 @@ func (c *ConfigSyncCommand) Run(args []string) int { } func (c *ConfigSyncCommand) Flags() *flag.Sets { - return c.flagSet(0, nil) + return c.flagSet(flagSetOperation, nil) } func (c *ConfigSyncCommand) AutocompleteArgs() complete.Predictor { diff --git a/website/content/commands/config-sync.mdx b/website/content/commands/config-sync.mdx index 77e8278eb41..9c03b733318 100644 --- a/website/content/commands/config-sync.mdx +++ b/website/content/commands/config-sync.mdx @@ -31,4 +31,14 @@ be deleted. - `-project=` (`-p`) - Project to target. - `-workspace=` (`-w`) - Workspace to operate in. +#### Operation Options + +- `-label=` - Labels to set for this operation. Can be specified multiple times. +- `-local` - True to use a local runner to execute the operation, false to use a remote runner. + If unset, Waypoint will automatically determine where the operation will occur, + defaulting to remote if possible. +- `-remote-source=` - Override configurations for how remote runners source data. This is specified to the data source type being used in your configuration. This is used for example to set a specific Git ref to run against. +- `-var=` - Variable value to set for this operation. Can be specified multiple times. +- `-var-file=` - HCL or JSON file containing variable values to set for this operation. If any "_.auto.wpvars" or "_.auto.wpvars.json" files are present, they will be automatically loaded. + @include "commands/config-sync_more.mdx"