ks env targets

Set target modules for an environment

Synopsis

The targets command selects one or more modules to be applied by an
environment. The default environment target is the root module, /.

Changing targets for an environment will require specifying all desired modules including the root module.

  1. ks env targets [flags]

Examples

  1. # Create a new module
  2. ks module create db
  3. # Generate a component and specify the module
  4. ks generate redis-stateless redis --module db
  5. # Change the default environment target from / to db
  6. # The targets are tracked in app.yaml
  7. ks env targets default --module db

Options

  1. -h, --help help for targets
  2. --module strings Component modules to include
  3. -o, --override Set targets in environment as override

Options inherited from parent commands

  1. --dir string Ksonnet application root to use; Defaults to CWD
  2. --tls-skip-verify Skip verification of TLS server certificates
  3. -v, --verbose count Increase verbosity. May be given multiple times.

SEE ALSO

  • ks env - Manage ksonnet environments