anchor.diff:  
   toc::[]
   
  -== Overview
  +[[setting-and-unsetting-environment-variables]]
  +== Setting and Unsetting Environment Variables
   
  -You can set, unset or list environment variables in pods or pod
  -xref:../dev_guide/templates.adoc#dev-guide-templates[templates] using the
  -`oc set env` command. This command can also be used on `*BuildConfig*` objects.
  +{product-title} provides the
  +xref:../cli_reference/basic_cli_operations.adoc#set[`oc set env`] command to set
  +or unset environment variables for objects that have a pod
  +xref:../dev_guide/templates.adoc#dev-guide-templates[template], such as
  +replication controllers or deployment configurations. It can also list
  +environment variables in pods or any object that has a pod template. This
  +command can also be used on `BuildConfig` objects.
   
  -== CLI Interface
  +[[list-environment-variables]]
  +== List Environment Variables
   
  -{product-title} provides the `oc set env` command to set or unset environment
  -variables for objects that have a pod template, such as replication controllers
  -or deployment configurations. It can also list environment variables in pods or
  -any object that has a pod template. This command can also be used on
  -`*BuildConfig*` objects.
  -
  -The `oc set env` command uses the following general syntax:
  +To list environment variables in pods or pod templates:
   
   ----
  -$ oc set env <object-selection> <environment-variables> [options]
  +$ oc set env <object-selection> --list [<common-options>]
   ----
   
  -There are several ways to express `<object-selection>`.
  -
  -[[env-var-object-selection]]
  -[cols="3*",options="header"]
  -|===
  -
  -|Syntax |Description |Example
  -
  -|`_<object-type>_ _<object-name>_`
  -|Selects _<object-name>_ of type _<object-type>_.
  -|`dc registry`
  -
  -|`_<object-type>_/_<object-name>_`
  -|Selects _<object-name>_ of type _<object-type>_.
  -|`dc/registry`
  -
  -|`_<object-type>_ --selector=_<object-label-selector>_`
  -|Selects objects of type _<object-type>_ that match _<object-label-selector>_.
  -|`dc --selector="name=registry"`
  -
  -|`_<object-type>_ --all`
  -|Selects all objects of type _<object-type>_.
  -|`dc --all`
  -
  -|`-f, --filename=_<ref>_`
  -|Look in _<ref>_ -- a filename, directory name, or URL -- for the definition of the object to edit.
  -|`-f registry-dc.json`
  -|===
  -
  -Supported common options for set, unset or list environment variables:
  -
  -[[common-options]]
  -[cols="2",options="header"]
  -|===
  -
  -|Option |Description
  -
  -|`-c, --containers [<name>]`
  -|Select containers by `_<name>_`.  You can use asterisk (`\*`, U+2A) as a wildcard.  If unspecified, `_<name>_` defaults to `*`.
  -
  -|`-o, --output <format>`
  -|Display the changed objects in `_<format>_` -- either `json` or `yaml` -- instead of updating them on the server.  This option is incompatible with `--list`.
  -
  -|`--output-version <api-version>`
  -|Output the changed objects with `_<api-version>_` instead of the default API version.
  -
  -|`--resource-version <version>`
  -|Proceed only if `_<version>_` matches the current resource-version in the object.  This option is valid only when specifying a single object.
  -|===
  +This example lists all environment variables for pod `p1`:
  +----
  +$ oc set env pod/p1 --list
  +----
   
   [[set-environment-variables]]
   == Set Environment Variables
  
positive.code: ----
  $ oc set env rc r1 --containers='c1' ENV-
  ----
  
  == List Environment Variables
  
  To list environment variables in pods or pod templates:
  
  ----
  $ oc set env <object-selection> --list [<common-options>]
  ----
  
  This example lists all environment variables for pod `p1`:
  ----
  $ oc set env pod/p1 --list
  ----
  
negative.code: ----
  $ oc set env -f rc.json STORAGE=/opt -o yaml > rc.yaml
  ----
  
  [[automatically-added-environment-variables]]
  === Automatically Added Environment Variables
  
  .Automatically Added Environment Variables
  