# VU
### **Cheat Sheet – Virtual Environment Manager**
#### Standard
```
python3 -m venv .venv
source .venv/bin/activate // Linux
.venv\Scripts\activate // Windows
```
##### Create and Manage Environments
Command | Description |
---|
`vu new ` | Create a new virtual environment |
`vu rm ` | Delete (remove) an environment |
`vu ls` | List all virtual environments |
`vu cd ` | Print path to the environment |
##### Interactive Environment
Command | Description |
---|
`vu activate ` | Start a new shell with the environment active |
`exit` | Exit the activated shell |
##### Other Helpful Commands
Command | Description |
---|
`vu which ` | Show path to Python binary in the env |
`vu home` | Show the root directory where `vu` stores envs |
##### Typical Workflow
```
vu new myproject
vu run myproject pip install flask
vu run myproject python app.py
```
Or interactively:
```
vu activate myproject
# now you're inside the virtualenv
python
exit
```