Quick Start
This guide will walk you through creating your first environment with uvup.
Verify Installation
After installing uvup (see Installation), verify it's working:
uvup --versionThe installation script automatically runs uvup init to configure for all detected shells.
If you skipped the automated installer or need to reconfigure, you can run:
uvup initSee the Shell Integration section below for details.
Basic Workflow
1. Create an Environment
# Create a new environment
uvup create myproject
# Or with a specific Python version
uvup create myproject --python 3.12This creates a new virtual environment at ~/.uvup/myproject with:
- A
.venvdirectory containing the Python virtual environment - A
pyproject.tomlfile for dependency management - A
uv.lockfile for reproducible installs
2. List Environments
uvup listThis shows all your created environments.
3. Activate an Environment
uvup activate myprojectAfter activation:
- Your shell prompt shows
(myproject) - Python points to the environment's Python
- You can use uvup package management commands
4. Add Packages
# Add packages to your environment
uvup add numpy pandas requests
# Add development dependencies
uvup add --group dev pytest black mypyThe packages are added to pyproject.toml and installed automatically.
5. Work with Your Code
# Run Python scripts
python script.py # Classic usage
uv run script.py # uv-like usage
# Use installed tools
pytest tests/ # Classic usage
uv run pytest tests/ # uv-like usage
jupyter notebook # Classic usage
uv run jupyter notebook # uv-like usage6. Manage Dependencies
# Update the lockfile
uvup lock
# Upgrade all packages
uvup lock --upgrade
# View dependency tree
uvup tree
# View with depth limit
uvup tree --depth 27. Remove Packages
# Remove a package
uvup remove pandas
# Remove from a specific group
uvup remove --group dev pytest8. Deactivate
uvup deactivateThis returns your shell to its original state.
9. Delete an Environment
uvup delete myprojectThis permanently removes the environment directory.
Example Session
Here's a complete example workflow from scratch:
# Create a data science environment
$ uvup create data-analysis --python 3.11
Environment 'data-analysis' created successfully
# List environments
$ uvup list
data-analysis
# Activate it
$ uvup activate data-analysis
(data-analysis) $
# Add packages
(data-analysis) $ uvup add numpy pandas matplotlib jupyter
Added: numpy, pandas, matplotlib, jupyter
# Run your analysis
(data-analysis) $ python analyze.py # Classic usage
(data-analysis) $ uv run analyze.py # uv-like usage
# Add development tools
(data-analysis) $ uvup add --group dev pytest black
Added to dev: pytest, black
# Deactivate when done
(data-analysis) $ uvup deactivate
$
# Clean up
$ uvup delete data-analysis
Environment 'data-analysis' removed successfullyShell Integration
The uvup init command configures your shells to enable uvup activate and uvup deactivate commands.
Supported Shells
| Platform | Auto-detected Shells |
|---|---|
| Windows | PowerShell, Git Bash |
| macOS | Bash, Zsh, Fish |
| Linux | Bash, Zsh, Fish |
Configuration Files Modified
| Shell | File |
|---|---|
| Bash | ~/.bashrc (also creates ~/.bash_profile on Windows) |
| Zsh | ~/.bashrc |
| Fish | ~/.config/fish/config.fish |
| PowerShell | $PROFILE |
Manual Configuration
If you need to reconfigure or customize:
# Initialize all detected shells
uvup init
# Initialize only a specific shell
uvup init powershell
uvup init bash
# Preview changes without modifying files
uvup init --dry-run
# Get shell script for manual setup
uvup init --raw
# Remove shell integration
uvup init --reverseAfter running uvup init, restart your terminal or reload your shell:
source ~/.bashrc # Bash
source ~/.zshrc # Zsh
source ~/.config/fish/config.fish # Fish
# PowerShell: just restart terminalTroubleshooting
uvup activate not found
This means shell integration wasn't set up properly. Run:
uvup initThen restart your terminal.
Changes not taking effect
Make sure you restarted your terminal or reloaded your shell configuration after running uvup init.
Next Steps
- Core Concepts - Understand uvup's design philosophy
- Commands Reference - Complete command documentation
- Use Cases - Real-world usage scenarios