0.0.1 • Published 1 year ago
conda-init v0.0.1
conda-init
A CLI tool to initialize Conda environments.
Installation
You can use this package without installing it by using npx:
npx conda-initOr you can install it globally:
npm install -g conda-initUsage
Run the command:
conda-init [env_name] [python_version] [--create]env_name(optional): The name of the Conda environment. If not provided, it will use the current directory name.python_version(optional): The Python version to use. Default is 3.10.14.--create(optional): Automatically create the Conda environment after generating the environment.yml file.
If you don't provide the environment name or Python version, the script will prompt you for input.
Examples
Generate an
environment.ymlfile with default settings:npx conda-initGenerate an
environment.ymlfile with a specific name and Python version:npx conda-init myenv 3.9.7Generate an
environment.ymlfile and create the Conda environment:npx conda-init myenv 3.9.7 --createGenerate an
environment.ymlfile with default settings and create the Conda environment:npx conda-init --create
What it does
- If not provided, prompts for environment name and Python version.
- Generates an
environment.ymlfile in the current directory. - If the
--createflag is used, creates a Conda environment based on the generated file. - Provides the command to activate the newly created environment.
Requirements
- Node.js >= 14.8.0
- Conda (must be installed and available in your PATH)
License
MIT