commands.sh

poetry new

all

Create a new Poetry project in a specific directory.

More info →

Options (1)

-i, --interactiveboolean

Create a new project asking for configuration details interactively

Example: poetry new {{path/to/directory}} {{[-i|--interactive]}}

Examples (6)

Create a new project (defaults to `src` layout)

poetry new path/to/directory

Create a new project asking for configuration details interactively

poetry new path/to/directory [-i|--interactive]

Create a new project with a specific package name

poetry new path/to/directory --name package_name

Create a new project using the flat layout (without the `src` directory)

poetry new path/to/directory --flat

Create a new project with a specific author

poetry new path/to/directory --author "Name <[email protected]>"

Create a new project with a specific README format

poetry new path/to/directory --readme md|rst|txt|...
made by @shridhargupta | data from tldr-pages