mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
528 B
Plaintext
26 lines
528 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# poetry run
|
|
|
|
> Run a command in the project's virtual environment.
|
|
> More information: <https://python-poetry.org/docs/cli/#run>.
|
|
|
|
- Run a command inside the virtual environment:
|
|
|
|
`poetry run {{command}}`
|
|
|
|
- Run a command with arguments:
|
|
|
|
`poetry run {{command}} {{argument1 argument2 ...}}`
|
|
|
|
- Run a script defined in `pyproject.toml`:
|
|
|
|
`poetry run {{script_name}}`
|
|
|
|
- Run a Python script:
|
|
|
|
`poetry run python {{path/to/script.py}}`
|