Run a conda or mamba CLI command, resolving the executable and setting MAMBA_ROOT_PREFIX when mamba is in use.
MAMBA_ROOT_PREFIX
The conda subcommand and arguments (e.g. ["install", "numpy"]).
["install", "numpy"]
The parsed action inputs.
The current dynamic options.
When true, returns stdout as a string.
true
The captured stdout if captureOutput is true, otherwise void.
captureOutput
If the command exits with a non-zero return code.
// Install numpy into the active envawait condaCommand(["install", "numpy"], inputs, options);// Capture JSON config outputconst json = await condaCommand( ["config", "--show", "--json"], inputs, options, true); Copy
// Install numpy into the active envawait condaCommand(["install", "numpy"], inputs, options);// Capture JSON config outputconst json = await condaCommand( ["config", "--show", "--json"], inputs, options, true);
Run a conda or mamba CLI command, resolving the executable and setting
MAMBA_ROOT_PREFIXwhen mamba is in use.