From 169da1e7069ff1892586f45fcc3a27322ef0a9d5 Mon Sep 17 00:00:00 2001 From: Shelly David <59293978+shellydavid@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:08:01 -0400 Subject: [PATCH 1/4] conda-{export, init, notices}: add page --- pages/common/conda-export.md | 28 ++++++++++++++++++++++++++++ pages/common/conda-init.md | 33 +++++++++++++++++++++++++++++++++ pages/common/conda-notices.md | 16 ++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 pages/common/conda-export.md create mode 100644 pages/common/conda-init.md create mode 100644 pages/common/conda-notices.md diff --git a/pages/common/conda-export.md b/pages/common/conda-export.md new file mode 100644 index 00000000000000..a9081a8c75b6bd --- /dev/null +++ b/pages/common/conda-export.md @@ -0,0 +1,28 @@ +# conda export + +> Export environment details. +> More information: . + +- Export the current environment details to stdout: + +`conda export` + +- Export the current environment details to a `YAML` file: + +`conda export {{[-f|--file]}} my-env.yaml` + +- Export details in a specific format: + +`conda export --format {{environment-json|environment-yaml|explicit|json|reqs|requirements|txt|yaml|yml}}` + +- Target an environment by name: + +`conda export {{[-n|--name]}} {{environment_name}}` + +- Target an environment by its path: + +`conda export {{[-p|--prefix]}} {{path/to/environment}}` + +- Include a specific channel: + +`conda export {{[-c|--channel]}} {{channel_name}}` diff --git a/pages/common/conda-init.md b/pages/common/conda-init.md new file mode 100644 index 00000000000000..433427796dbaad --- /dev/null +++ b/pages/common/conda-init.md @@ -0,0 +1,33 @@ +# conda init + +> Initialize conda for shell interaction. +> Most shells need to be closed and restarted for changes to take effect. +> More information: . + +- Initialize a specific shell (if none is specified, defaults to `bash` for UNIX and `powershell` for Windows): + +`conda init {{zsh|bash|powershell|fish|tcsh|xonsh}}` + +- Initialize all available shells: + +`conda init --all` + +- Initialize conda for the current user (default): + +`conda init --user` + +- Initialize conda for all users on the system: + +`conda init --system` + +- Don't initialize conda for the current user: + +`conda init --no-user` + +- Add `condabin/` directory to PATH: + +`conda init --condabin` + +- Undo effects of the last `conda init`: + +`conda init --reverse` diff --git a/pages/common/conda-notices.md b/pages/common/conda-notices.md new file mode 100644 index 00000000000000..335c0d3a4e7688 --- /dev/null +++ b/pages/common/conda-notices.md @@ -0,0 +1,16 @@ +# conda notices + +> Retrieve latest channel notifications. +> More information: . + +- Show notices for the default channel and all `.condarc` channels: + +`conda notices` + +- Include a specific channel: + +`conda notices {{[-c|--channel]}} {{channel_name}}` + +- Ignore default and `.condarc` channels. Requires -c flag: + +`conda notices --override-channels -c {{channel_name}}` From 50908d21acc03ac5f9d5716b1f65a2fbc99644dc Mon Sep 17 00:00:00 2001 From: Shelly David <59293978+shellydavid@users.noreply.github.com> Date: Sun, 19 Oct 2025 12:26:21 -0400 Subject: [PATCH 2/4] Apply suggestions from code review Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --- pages/common/conda-export.md | 4 ++-- pages/common/conda-notices.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/conda-export.md b/pages/common/conda-export.md index a9081a8c75b6bd..ac6c59cf66cfa1 100644 --- a/pages/common/conda-export.md +++ b/pages/common/conda-export.md @@ -3,13 +3,13 @@ > Export environment details. > More information: . -- Export the current environment details to stdout: +- Export the current environment details to `stdout`: `conda export` - Export the current environment details to a `YAML` file: -`conda export {{[-f|--file]}} my-env.yaml` +`conda export {{[-f|--file]}} {{path/to/environment.yaml}}` - Export details in a specific format: diff --git a/pages/common/conda-notices.md b/pages/common/conda-notices.md index 335c0d3a4e7688..b5b5c9c099fb18 100644 --- a/pages/common/conda-notices.md +++ b/pages/common/conda-notices.md @@ -1,7 +1,7 @@ # conda notices > Retrieve latest channel notifications. -> More information: . +> More information: . - Show notices for the default channel and all `.condarc` channels: @@ -13,4 +13,4 @@ - Ignore default and `.condarc` channels. Requires -c flag: -`conda notices --override-channels -c {{channel_name}}` +`conda notices {{[-c|--channel]}} {{channel_name}} --override-channels` From 846faec08f30452762ff9ebb58348551705e9cd1 Mon Sep 17 00:00:00 2001 From: Shelly David <59293978+shellydavid@users.noreply.github.com> Date: Sun, 19 Oct 2025 12:30:26 -0400 Subject: [PATCH 3/4] Apply suggestion from code review --- pages/common/conda-init.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pages/common/conda-init.md b/pages/common/conda-init.md index 433427796dbaad..81805b84b05a93 100644 --- a/pages/common/conda-init.md +++ b/pages/common/conda-init.md @@ -12,10 +12,6 @@ `conda init --all` -- Initialize conda for the current user (default): - -`conda init --user` - - Initialize conda for all users on the system: `conda init --system` From 772526e79ec96b2743db7b3c5621f969934c0544 Mon Sep 17 00:00:00 2001 From: Shelly David <59293978+shellydavid@users.noreply.github.com> Date: Sun, 19 Oct 2025 23:16:38 -0400 Subject: [PATCH 4/4] Apply suggestions from code review Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/conda-notices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/conda-notices.md b/pages/common/conda-notices.md index b5b5c9c099fb18..002f34bc4b3a5e 100644 --- a/pages/common/conda-notices.md +++ b/pages/common/conda-notices.md @@ -11,6 +11,6 @@ `conda notices {{[-c|--channel]}} {{channel_name}}` -- Ignore default and `.condarc` channels. Requires -c flag: +- Ignore default and `.condarc` channels: `conda notices {{[-c|--channel]}} {{channel_name}} --override-channels`