jx create variable

list of jx commands

jx create variable

Creates an environment variable in the Jenkins X Pipeline

Synopsis

Creates an environment variable in the Jenkins X Pipeline

jx create variable [flags]

Examples

  # Create a new environment variable with a name and value
  jx create var -n CHEESE -v Edam
  
  # Create a new environment variable with a name and ask the user for the value
  jx create var -n CHEESE
  
  # Overrides an environment variable from the build pack
  jx create var

Options

  -d, --dir string     The root project directory. Defaults to the current dir
  -h, --help           help for variable
  -n, --name string    The name of the environment variable to set
  -v, --value string   The value of the environment variable to set

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input
      --verbose      Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace

SEE ALSO

Auto generated by spf13/cobra on 2-Sep-2020