Poetry commands

CommandDescription
poetry --versionShow the version of your Poetry installation.
poetry self updateUpdate Poetry to the latest version.
poetry newCreate a new project
poetry initCreate a new project or convert from legacy formats
poetry installInstall project dependencies
poetry addAdd a new dependency
poetry updateUpdate dependencies as according to the pyproject.toml file
poetry removeRemove a dependency
poetry showShow information about current project
poetry show --outdatedShow the latest version but only for packages that are outdated
poetry show --latestShow the latest version.
poetry buildBuild distributable packages
poetry publishPublish distributable packages to PyPI
poetry config --listShow the Poetry configuration
poetry searchSearch for package in PyPI
poetry runRun a command inside the virtual environment
poetry shellSpawn a shell within the virtual environment
poetry checkCheck the validity of the pyproject.toml file
poetry lockLocks the current dependency versions
poetry envInteract with Poetry's project virtualenv
poetry cacheInteract with Poetry's cache
poetry debugShow information useful for debugging
poetry exportExport the lock file to alternative formats
poetry env listList all virtualenvs associated with the current project
poetry env infoDisplays information about the current environment.
poetry env removeRemoves the virtualenv for the current project.
poetry env useSets the virtualenv for the current project.

Poetry's CLI

Check out the full list of commands here.