Installation¶
Requirements¶
- Python 3.10 or newer (3.12 recommended; tested on 3.10–3.15)
- Git 2.38+ (worktree support)
- Linux or macOS (POSIX-only)
- GitHub CLI (
gh) — optional, required only for GitHub/GHES PRs inrenv pr(install)
Recommended: uv tool¶
Alternative: pipx¶
Alternative: pip (virtual environment)¶
Verify installation¶
SCM providers for renv clone¶
GitHub / GitHub Enterprise, Azure DevOps and Gitea/Forgejo discovery work out of the box. GitLab and Bitbucket need their client library via an extra:
| Extra | Adds |
|---|---|
repo-env[gitlab] |
GitLab.com and self-managed GitLab (python-gitlab) |
repo-env[bitbucket] |
Bitbucket Cloud and Bitbucket Server/Data Center (atlassian-python-api) |
repo-env[all] |
All of the above |
renv clone tells you which extra to install when a host needs one that is missing.
PR provider authentication¶
renv pr supports GitHub/GHES, GitLab, Bitbucket Cloud, Bitbucket Server/Data Center,
Azure DevOps, and Gitea/Forgejo. Non-GitHub providers use REST APIs and the
configured credentials; no CLI or discovery extras are required.
GitHub/GHES retains the GitHub CLI workflow:
Shell completion¶
Install into your shell's completion directory (detects the shell from $SHELL, prompts once):
Or specify explicitly, and restart your shell (or source its rc file) afterward: