wf resolve
wf resolve
Resolves a template value from a Wayfinder package or application environment context
Synopsis
Compiles the provided template string (or file) in the context of a specified package or application.
You can use this command while preparing new templates in order to understand the values that will be produced when the template is used, or to understand the types of values you will get back from the template context.
NOTE: use: "wf describe var" to see what type of data you will get.
wf resolve [flags]
Examples
# General usage:
# Resolve a template value for an package:
$ wf resolve "{{ .Path.To.Value }}" --package PACKAGE --cluster CLUSTER [-w workspace]
# Resolve a template value for an package component from file:
$ wf resolve -f ./path.to.template --package PACKAGE --cluster CLUSTER [-w workspace]
# Write the template output to file using the --out flag:
$ wf resolve "{{ .Path.To.Value }}" --package PACKAGE --cluster CLUSTER --out ./path.to.output [-w workspace]
# Resolve a template value for an application component:
$ wf resolve "{{ .Path.To.Value }}" --component COMPONENT --env APPENV [-w workspace]
# Resolve a template value for an application component from file:
$ wf resolve -f ./path.to.template --component COMPONENT --env APPENV [-w workspace]
# Write the template output to file using the --out flag:
$ wf resolve "{{ .Path.To.Value }}" --component COMPONENT --env APPENV --out ./path.to.output [-w workspace]
Options
--cluster string defines the cluster context
--component string defines the application component context
-e, --env string defines the application environment context
-f, --file string defines the file to template from
-h, --help help for resolve
-O, --out string the dir to output to - default is to output to stdout
--package string defines the package context
-t, --template string defines the template string
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) (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 - to change default: wf use workspace NAME
SEE ALSO
- wf - CLI interface for Wayfinder