diff --git a/salt/states/cmd.py b/salt/states/cmd.py
index <HASH>..<HASH> 100644
--- a/salt/states/cmd.py
+++ b/salt/states/cmd.py
@@ -131,6 +131,22 @@ executed when the state it is watching changes. Example:
         - installed
         - require:
           - file: /usr/local/bin/postinstall.sh
+
+How do I create a environment from a pillar map?
+---------------------------------------------------------------------------------------------
+
+The map that comes from a pillar cannot be directly consumed by the env option. To use it
+one must convert it to a list. Example:
+
+.. code-block:: yaml
+
+    printenv:
+    cmd.run:
+        - env:
+            {% for key, value in pillar['keys'].iteritems() %}
+             - '{{ key }}': '{{ value }}'
+            {% endfor %}
+
 '''
 
 # Import python libs
How to use pillar maps as environments

Example of how to use a pillar map as an environment for a command.