Conda_env api questions

I searched the condo repo to get some info about the conda_env cli. I could not figure out how to export an environment with it so I used subprocess with this str: conda env export -n env1 --no-builds --file env1_nobld.yml, which worked.
How can I do the same with conda_env?

Thanks for your help.

PS: Category for conda_env is missing.

I think there’s a Python CLI hook in conda.cli. Something like run_command or similar! You should be able to do run_command("env", "export", ...).

ok thanks. I’ll look again.