summaryrefslogtreecommitdiff
path: root/lib/spack/docs/environments.rst
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2021-03-21 05:14:13 -0500
committerGitHub <noreply@github.com>2021-03-21 10:14:13 +0000
commitf4b56620e56d5f527d3ff85d799f8c55583ee4c2 (patch)
treee241e238f62212e48ff33a14a0e7eb49ed5e59e2 /lib/spack/docs/environments.rst
parentdf8dcef9632552dfde43d7426d2d4b23e64085bf (diff)
downloadspack-f4b56620e56d5f527d3ff85d799f8c55583ee4c2.tar.gz
spack-f4b56620e56d5f527d3ff85d799f8c55583ee4c2.tar.bz2
spack-f4b56620e56d5f527d3ff85d799f8c55583ee4c2.tar.xz
spack-f4b56620e56d5f527d3ff85d799f8c55583ee4c2.zip
Document cli syntax for environment scopes (#20344)
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'lib/spack/docs/environments.rst')
-rw-r--r--lib/spack/docs/environments.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/spack/docs/environments.rst b/lib/spack/docs/environments.rst
index 064cfad336..1a52ac8328 100644
--- a/lib/spack/docs/environments.rst
+++ b/lib/spack/docs/environments.rst
@@ -399,6 +399,12 @@ There are two ways to include configuration information in a Spack Environment:
#. Included in the ``spack.yaml`` file from another file.
+Many Spack commands also affect configuration information in files
+automatically. Those commands take a ``--scope`` argument, and the
+environment can be specified by ``env:NAME`` (to affect environment
+``foo``, set ``--scope env:foo``). These commands will automatically
+manipulate configuration inline in the ``spack.yaml`` file.
+
"""""""""""""""""""""
Inline configurations
"""""""""""""""""""""