Metadata-Version: 2.1
Name: pdm-download
Version: 0.1.2
Summary: A PDM plugin to download all packages in a lockfile for offline use.
Author-Email: Frost Ming <me@frostming.com>
License: MIT
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Project-URL: Repository, https://github.com/pdm-project/pdm-download
Requires-Python: >=3.8
Requires-Dist: rich>=13
Description-Content-Type: text/markdown

# pdm-download

A PDM plugin to download all packages in a lockfile for offline use.


## Installation

```bash
pdm self add pdm-download
```

## Usage

This plugin adds a new command `pdm download`, with the following options:

```bash
pdm download --help
Usage: pdm download [-h] [-L LOCKFILE] [-v | -q] [-g] [-p PROJECT_PATH] [-d DEST]

Download all packages from a lockfile for offline use

Options:
  -h, --help            Show this help message and exit.
  -L LOCKFILE, --lockfile LOCKFILE
                        Specify another lockfile path. Default: pdm.lock. [env var: PDM_LOCKFILE]
  -v, --verbose         Use `-v` for detailed output and `-vv` for more detailed
  -q, --quiet           Suppress output
  -g, --global          Use the global project, supply the project root with `-p` option
  -p PROJECT_PATH, --project PROJECT_PATH
                        Specify another path as the project root, which changes the base of pyproject.toml and __pypackages__ [env var: PDM_PROJECT]
  -d DEST, --dest DEST  The destination directory, default to './packages'
```
