https://github.com/kyegomez/poetry-cheatsheet
A super simple cheatsheet for poetry because I forget easily.
https://github.com/kyegomez/poetry-cheatsheet
ai dev-tools devops ml poetry python
Last synced: 12 months ago
JSON representation
A super simple cheatsheet for poetry because I forget easily.
- Host: GitHub
- URL: https://github.com/kyegomez/poetry-cheatsheet
- Owner: kyegomez
- Created: 2024-03-05T05:09:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T05:09:44.000Z (over 2 years ago)
- Last Synced: 2025-02-22T21:42:19.538Z (over 1 year ago)
- Topics: ai, dev-tools, devops, ml, poetry, python
- Homepage: https://discord.gg/GYbXvDGevY
- Size: 1.95 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poetry Cheat Sheet
A simple and easy-to-use cheat sheet for Poetry.
| Command | Description |
|---------|-------------|
| `poetry new [name]` | Creates a new Python project in a new directory. |
| `poetry init` | Initializes a new Poetry project in the current directory. |
| `poetry add [package]` | Adds a new package to the project's dependencies. |
| `poetry remove [package]` | Removes a package from the project's dependencies. |
| `poetry show` | Shows information about the project's packages. |
| `poetry update` | Updates the project's dependencies. |
| `poetry install` | Installs the project's dependencies. |
| `poetry run [command]` | Runs a command in the virtual environment. |
| `poetry shell` | Spawns a shell within the virtual environment. |
| `poetry build` | Builds the project package. |
| `poetry publish` | Publishes the project package to PyPI. |
| `poetry version [version]` | Bumps the version of the project. |
| `poetry config [setting] [value]` | Configures Poetry settings. |
| `poetry cache clear --all pypi` | Clears Poetry's cache. |
Remember to replace `[name]`, `[package]`, `[command]`, `[version]`, `[setting]`, and `[value]` with your specific project name, package name, command, version number, setting, and value respectively.