ControlTier > core
 

env

Command Reference

Description

get environment info

The env command looks up values of environment variables. Use the -key option to specify a particular key to lookup. If no key option is specified all environment variables are printed.

Format: Uses YAML to print lookup results.

Example: Print the value of the CTL_BASE variable

	    $ ctl -m shellutil -c env -- -key CTL_BASE
	    --- 
	    CTL_BASE: /ctier/ctl
	  

static: This command can be run outside of an object context.

Usage

ctl -m shellutil -c env [-format <plain>] [-key <.*>] [-output <>]

Options

Option Description Type Default
format output format

formats:

  • plain: key=val pairs one per line
  • yaml: use YAML format
string plain
key env key string .*
output output file string