LinuxCommandLibrary

poetry-config

Manage Poetry configuration settings

TLDR

List configuration

$ poetry config --list
copy
Set configuration
$ poetry config [key] [value]
copy
Set repository URL
$ poetry config repositories.[name] [https://repo.example.com]
copy
Set PyPI token
$ poetry config pypi-token.pypi [token]
copy
Unset configuration
$ poetry config --unset [key]
copy

SYNOPSIS

poetry config [options] [key] [value]

DESCRIPTION

poetry config reads and writes Poetry configuration settings including virtual environment preferences, repository URLs, and authentication tokens. Use --list to view all current settings.
Settings are stored globally by default. The --local flag creates a poetry.toml file in the project directory for project-specific overrides. Common settings include `virtualenvs.in-project`, `repositories`, and `pypi-token`. Use --unset to remove a configuration key.

PARAMETERS

KEY

Configuration key.
VALUE
Configuration value.
--list
Show all configuration.
--unset
Remove configuration.
--local
Project-specific config.

CAVEATS

Tokens stored in config. Use --local for project settings.

HISTORY

poetry config provides configuration management for Poetry settings.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community