Skip to content
bruhtus edited this page Jul 4, 2021 · 2 revisions

Pyv Usage

Create Virtual Environment

If the current working directory is a git repo then you can use the command pce without any argument, then pyv gonna create python venv with the git repo name.

If you want to name your python venv then you can use pce <name-venv>, for example: pce something-big.

Please use - or _ instead of space as virtual environment name, for example: something-big or something_big instead of something big.

Remove Virtual Environment

If the current working directory is a git repo and you already created python venv before then you can use the command pre without any argument, then pyv gonna remove python venv directory with the same git repo name. So if you changed your git repo name, then you can't use pre without an argument to delete (previously) the same python venv.

If you want to delete specific python venv, you can use pre <name-venv>, for example: pre something-big.

Activate Virtual Environment

If the current working directory is a git repo and you already created python venv before then you can use the command pae without any argument, then pyv gonna activate the python venv.

If you want to activate a specific python venv, you can use pae <name-venv>, for example: pae something-big.

Deactivate Virtual Environment

If you already activate python venv, then you can use pde command to deactivate python venv.

List Virtual Environment

To list all virtual environment, you can use pve command.