Console script (cli)#
Functions:
| 
 | Versioning call back. | 
| 
 | Manage uv virtual environments from central location. | 
| 
 | Create symlink from paths to workon_home. | 
| 
 | List available central virtual environments | 
| 
 | Remove missing broken virtual environment symlinks. | 
| 
 | Run uv commands using using the named or specified virtual environment. | 
| 
 | Create symlink from virtual environment to a local  | 
| Use with  | |
| 
 | Use to activate virtual environments. | 
| 
 | Command to change to parent directory of virtual environment. | 
| 
 | Install ipykernels for virtual environment(s) that contain  | 
| 
 | Remove installed kernels | 
| List installed kernels. | 
- uv_workon.cli.main(ctx, version=<typer.models.OptionInfo object>)[source]#
- Manage uv virtual environments from central location. 
- uv_workon.cli.link_virtualenvs_to_workon_home(*, paths=None, parents=None, link_names=None, resolve=False, workon_home, venv_patterns, use_default_venv_patterns=True, dry_run=False, verbose=None, yes=None)[source]#
- Create symlink from paths to workon_home. 
- uv_workon.cli.list_virtualenvs(*, workon_home, verbose=None)[source]#
- List available central virtual environments 
- uv_workon.cli.clean_virtualenvs(*, workon_home, dry_run=False, verbose=None, yes=None)[source]#
- Remove missing broken virtual environment symlinks. 
- uv_workon.cli.run_with_virtualenv(*, ctx, venv_name=None, venv_path=None, resolve=True, workon_home, venv_patterns, use_default_venv_patterns=True, dry_run=False, verbose=None)[source]#
- Run uv commands using using the named or specified virtual environment. - For example, use - uv-workon run -n my-env -- python ...is translated to- uv run -p patt/to/my-env --no-project python .... If an option mirrors one of the command options (-n, etc), pass it after- --. Use- --dry-runto echo the equivalent command to be run in the shell.- Under the hood, this uses - uv runwith the environment variables- VIRTUAL_ENVand- UV_PROJECT_ENVIRONMENTand the option- -pall set to the path of the virtual environment, and with the option- --no-project.
- uv_workon.cli.link_workon_home_to_venv(*, venv_name=None, venv_path=None, resolve=False, destination, workon_home, venv_patterns, use_default_venv_patterns=True, dry_run=False, verbose=None, yes=None)[source]#
- Create symlink from virtual environment to a local - .venv- This is, in a sense, the inverse of the - linksubcommand. While- linklinks from a virtualenv to- workon_home, this links from- workon_hometo a local- .venv. This can then be used (with care) via- uv run ....- Note that this is experimental and subject to change. 
- uv_workon.cli.shell_config()[source]#
- Use with - eval "$(uv-workon shell-config)"or- uv-workon shell-config | sourcefor fish shell.- This will add the subcommand - uv-workon activateand- uv-workon cdto the shell. Without running shell config,- activateand- cdwill just print the command to screen.
- uv_workon.cli.shell_activate(*, venv_name=None, venv_path=None, resolve=False, no_command=False, workon_home, venv_patterns, use_default_venv_patterns=True)[source]#
- Use to activate virtual environments. 
- uv_workon.cli.shell_cd(*, venv_name=None, venv_path=None, no_command=False, workon_home, venv_patterns, use_default_venv_patterns=True)[source]#
- Command to change to parent directory of virtual environment. 
- uv_workon.cli.install_ipykernels(ctx, *, venv_names=None, venv_paths=None, all_venvs=False, display_format='Python [venv: {name}]', no_user=False, resolve=True, workon_home, venv_patterns, use_default_venv_patterns=True, dry_run=False, verbose=None, yes=None)[source]#
- Install ipykernels for virtual environment(s) that contain - ipykernelmodule.