Forrest logo
back to the poetry tool

poetry:tldr:e56df

poetry: Install a development dependency and its subdependencies.
$ poetry add --group dev ${dependency}
try on your machine

This command is using the Poetry package manager to add a new dependency to a specific group ("dev").

The poetry add command is a command-line interface (CLI) command provided by the Poetry package manager. It allows you to add new dependencies to your project.

In this specific command, ${dependency} is a placeholder that should be replaced with the actual name of the dependency you want to add.

The --group dev argument is used to specify that the dependency should be added to the "dev" group. Groups in Poetry are used to categorize dependencies based on their purpose. The "dev" group typically includes development-related dependencies such as testing frameworks or tools.

In summary, this command adds a new dependency to the "dev" group using the Poetry package manager. The ${dependency} placeholder should be replaced with the actual name of the dependency you want to add.

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