Forrest logo
back to the poetry tool

poetry:tldr:3a764

poetry: Create a new Poetry project in the directory with a specific name.
$ poetry new ${project_name}
try on your machine

The command "poetry new ${project_name}" creates a new Python project using the Poetry package manager.

  • "poetry" is a command-line tool used for managing Python dependencies and virtual environments.
  • "new" is a subcommand of Poetry used to initialize a new project or create a new package.
  • "${project_name}" is a placeholder for the name you provide for your project. You need to replace it with your desired project name.

When you run this command, Poetry will generate a new project directory with the specified name. This directory will be set up with basic project structure, including a pyproject.toml file (used for managing dependencies), a src/ directory for your source code, and a tests/ directory for your unit tests. It also initializes a virtual environment for your project, isolating its dependencies from other Python projects on your system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the poetry tool