All apps/Rye

Rye

rye

Python project and toolchain manager

Runs as rye|macOS, Linux, Windows|rye.astral.sh

Command form

ai-draft · 4 tasks · 16 fields

Sync a Rye project's virtualenv and add dependencies. Other rye subcommands and the less common sync/add switches are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui rye

rye sync

Sync the project

Update the lockfiles and install the dependencies into the virtualenv.

Sync the projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Skip dev dependencies
--no-dev
Do not update lockfile
--no-lock
Update all packages
--update-all
Advanced
Verbose
--verbose
TasksEach one presets the form for one job
Sync
no_devno_lockupdate_allverbose
Rebuild the virtualenv
forceno_devverbose
ParametersOnly these flags are editable in the form
Re-create virtualenv
boolean
--force-f
Skip dev dependencies
boolean
--no-dev
Do not update lockfile
boolean
--no-lock
Update a package
string
--update
Update all packages
boolean
--update-all
Allow pre-releases
boolean
--pre
All features
boolean
--all-features
Verbose
boolean
--verbose-v

rye add

Add a dependency

Add a Python package to this project's dependencies.

Add a dependencyExample values, fixed in this page — nothing here reaches a terminal
Basic
Requirements*
string
Feature (extra)
string
Sync afterwards
--sync
Advanced
Allow pre-releases
--pre
TasksEach one presets the form for one job
Add a dependency
requirementsfeaturespresync
Add a dev dependency
requirementsdevsync
ParametersOnly these flags are editable in the form
Requirements
PEP 508 requirement strings, e.g. flask==2.2.3.
string · positional 0 · repeatable
Dev dependency
boolean
--dev
Optional group
string
--optional
Feature (extra)
string
--features
Git repository
url
--git
Local path
path
--path
Allow pre-releases
boolean
--pre
Sync afterwards
boolean
--sync
SourcesEvery flag above is checked against these
docs
* `-f, --force`: Force the virtualenv to be re-created * `--no-dev`: Do not install dev dependencies * `--no-lock`: Do not update the lockfile. * `--update <UPDATE>`: Update a specific package * `--update-all`: Update all packages to the latest * `--pre`: Update to pre-release versions * `--all-features`: Enables all features * `-v, --verbose`: Enables verbo…
manual2026-10-27

rye.astral.sh

docs
* `<REQUIREMENTS>...`: The package to add as PEP 508 requirement string. e.g. 'flask==2.2.3' * `--git <GIT>`: Install the given package from this git repository * `--path <PATH>`: Install the given package from this local path * `--features <FEATURES>`: Adds a dependency with a specific feature * `--dev`: Add this as dev dependency * `--optional <OPTIONAL>`:…
manual2026-10-27

rye.astral.sh

Before it fills your prompt, Otty checks the installed rye against its version. A form that does not match your version is not offered.