File tree Expand file tree Collapse file tree 4 files changed +80
-0
lines changed Expand file tree Collapse file tree 4 files changed +80
-0
lines changed Original file line number Diff line number Diff line change
1
+ # poetry cache
2
+
3
+ > Manage Poetry's cache.
4
+ > See also: ` asdf ` .
5
+ > More information: < https://python-poetry.org/docs/cli/#cache > .
6
+
7
+ - Display Poetry's available caches:
8
+
9
+ ` poetry cache list `
10
+
11
+ - Remove all packages from a cache (e.g.: PyPI):
12
+
13
+ ` poetry cache clear PyPI --all `
14
+
15
+ - Remove a specific package from a cache (Note: must be in format ` cache:package:version ` ):
16
+
17
+ ` poetry cache clear {{pypi}}:{{requests}}:{{2.24.0}} `
Original file line number Diff line number Diff line change
1
+ # poetry list
2
+
3
+ > List available Poetry commands.
4
+ > See also: ` asdf ` .
5
+ > More information: < https://python-poetry.org/docs/cli/#list > .
6
+
7
+ - List all available Poetry commands:
8
+
9
+ ` poetry list `
10
+
11
+ - List commands for a specific namespace:
12
+
13
+ ` poetry list {{namespace}} `
Original file line number Diff line number Diff line change
1
+ # poetry lock
2
+
3
+ > Lock dependencies in ` pyproject.toml ` (without installing them).
4
+ > See also: ` asdf ` .
5
+ > More information: < https://python-poetry.org/docs/cli/#lock > .
6
+
7
+ - Lock dependencies from the current directory's ` pyproject.toml ` file:
8
+
9
+ ` poetry lock `
10
+
11
+ - Regenerate the existing lock file:
12
+
13
+ ` poetry lock --regenerate `
Original file line number Diff line number Diff line change
1
+ # poetry show
2
+
3
+ > Show details of packages in your Poetry project.
4
+ > See also: ` asdf ` .
5
+ > More information: < https://python-poetry.org/docs/cli/#show > .
6
+
7
+ - Display all packages:
8
+
9
+ ` poetry show `
10
+
11
+ - Show details of a specific package:
12
+
13
+ ` poetry show {{package_name}} `
14
+
15
+ - Show details as a dependency tree:
16
+
17
+ ` poetry show {{[-t|--tree]}} `
18
+
19
+ - Only show top-level packages (those explicitly defined in ` pyproject.toml ` ):
20
+
21
+ ` poetry show {{[-T|--top-level]}} `
22
+
23
+ - Show outdated packages:
24
+
25
+ ` poetry show {{[-o|--outdated]}} `
26
+
27
+ - Show the latest versions for all packages:
28
+
29
+ ` poetry show {{[-l|--latest]}} `
30
+
31
+ - Exclude a specific dependency group/s:
32
+
33
+ ` poetry show --without {{group1,group2,...}} `
34
+
35
+ - Only show a specific dependency group/s:
36
+
37
+ ` poetry show --only {{group1,group2,...}} `
You can’t perform that action at this time.
0 commit comments