hub_invoke

Michael Delzer Updated by Michael Delzer

Invoke component’s verb (from another component)

Synopsis

Invoke stack component’s verb from other component during lifecycle operation.

hub invoke <component> <verb> [-e 'ADDITIONAL_ENV_VAR1=value,...'] [flags]

Options

  -b, --base-dir string         Path to component sources base directory (default from HUB_COMPONENTS_BASEDIR environment variable, then manifest dir)
-m, --elaborate string Path to hub.yaml.elaborate manifest file (default from HUB_ELABORATE environment variable)
-e, --environment string Set additional environment variables: -e 'PORT=5000,...'
-h, --help help for invoke
--os-environment string OS environment mode for child process, one of: everything, no-tfvars, strict (default "no-tfvars")
-p, --pipe Pipe sub-commands output to console in real-time (default true)
-s, --state string Path to state files (default from HUB_STATE environment variable)

Options inherited from parent commands

      --all-warnings                   Repeat all warnings before [successful] exit (default true)
--api string Hub API service base URL, HUB_API (default "https://api.app.arkadi.dev.superhub.io")
--aws_profile string AWS ~/.aws/credentials profile, AWS_PROFILE (default "agilestacks")
--aws_region string AWS region hint (for S3 state access), AWS_DEFAULT_REGION (default "us-east-2")
--aws_use_iam_role_credentials Try EC2 instance credentials (default true)
--cache string API cache file (default is $HOME/.automation-hub-cache.yaml)
--compressed Write gzip compressed files (default true)
--config string Config file (default is $HOME/.automation-hub.{yaml,json})
-d, --debug Print debug info. Or set HUB_DEBUG=1
--encrypted string Write encrypted files if HUB_CRYPTO_PASSWORD is set. true / false (default "if-password-set")
-f, --force Force operation despite of errors. Or set HUB_FORCE=1
--log-destination string stderr or stdout (default "stderr")
-t, --trace Print detailed trace info. Or set HUB_TRACE=1
-v, --verbose Verbose mode (default true)

SEE ALSO

Automation Hub is a lifecycle and stack composition tool, hub Click Here

How did we do?

hub_init_component

hub_login

Contact