Poetry config file locations
This page covers Poetry runtime configuration, not project metadata and dependencies in pyproject.toml. Environment variables take precedence over project-local poetry.toml, which takes precedence over the user config.toml and Poetry defaults. POETRY_CONFIG_DIR replaces the platform default user configuration directory. auth.toml and the system keyring store repository credentials separately from this settings precedence.
Project local level
Local overridesPoetry runtime settings for one project. Replace <project> with the project root.
Config file location
Created or updated by poetry config --local. This file is separate from pyproject.toml.<project>/poetry.tomlCommands
vi "<project>/poetry.toml"User level
User defaultsUser-wide settings and repository credentials. POETRY_CONFIG_DIR replaces the XDG-based directory when set.
Config file location
Default user settings when XDG_CONFIG_HOME and POETRY_CONFIG_DIR are unset.~/.config/pypoetry/config.tomlDefault credential fallback when XDG_CONFIG_HOME and POETRY_CONFIG_DIR are unset.~/.config/pypoetry/auth.tomlAlternative user settings path when XDG_CONFIG_HOME is set and POETRY_CONFIG_DIR is unset.$XDG_CONFIG_HOME/pypoetry/config.tomlAlternative credential file path when XDG_CONFIG_HOME is set and POETRY_CONFIG_DIR is unset.$XDG_CONFIG_HOME/pypoetry/auth.tomlAlternative user settings path when POETRY_CONFIG_DIR is set.$POETRY_CONFIG_DIR/config.tomlAlternative credential file path when POETRY_CONFIG_DIR is set.$POETRY_CONFIG_DIR/auth.tomlCommands
vi "$HOME/.config/pypoetry/config.toml"vi "$XDG_CONFIG_HOME/pypoetry/config.toml"vi "$POETRY_CONFIG_DIR/config.toml"
Inspect configuration
poetry config --listOfficial Poetry documentation