commands.sh

poetry init

all

Create a basic `pyproject.toml` file interactively.

More info →

Options (2)

-n, --no-interactionboolean

Create a `pyproject.toml` file without interaction (using defaults)

Example: poetry init {{[-n|--no-interaction]}}
-h, --helpboolean

Display help

Example: poetry init {{[-h|--help]}}

Examples (6)

Create a `pyproject.toml` file interactively

Create a `pyproject.toml` file with prefilled values

poetry init --name package_name --author "author_name <[email protected]>"

Create a `pyproject.toml` file without interaction (using defaults)

poetry init [-n|--no-interaction]

Create a `pyproject.toml` file and add a dependency

poetry init --dependency package_name

Create a `pyproject.toml` file and add a development dependency

poetry init --dev-dependency package_name

Display help

poetry init [-h|--help]
made by @shridhargupta | data from tldr-pages