Commands
wget
Download a URL directly into Poly.
poly wget downloads an HTTP/HTTPS URL and stores the bytes directly in Poly, without a separate local download step. If the URL is itself a Poly file URL, it copies the file natively instead of re-downloading it.
Usage
poly wget <URL>
The destination defaults to the current directory if it's inside the sync folder; otherwise, pass -P to choose a Poly destination.
Flags
| Flag | Description |
|---|---|
-O, --output-document <FILE> | Name of the file to create. |
-P, --directory-prefix <DIR> | Poly folder to download into. |
--mime-type <MIME> | Override the inferred mime type. |
--tag <TAG> | Add a tag. Repeatable. |
--notes <TEXT> | Attach notes to the downloaded file. |
--rating <0.0-10.0> | Set a rating on the downloaded file. |
Examples
# Download a file into a Poly folder
poly wget https://example.com/report.pdf -P //Home/docs
# Download with a specific filename
poly wget https://example.com/data.csv -O quarterly-data.csv -P //Home/finance
# Download and tag on arrival
poly wget https://example.com/photo.jpg -P //Home/photos --tag red:favorites
# Force a mime type for a URL that serves the wrong content-type
poly wget https://example.com/export --mime-type application/json -P //Home/data
# Copy a Poly file URL natively instead of re-downloading it
poly wget https://poly.app/file/abc123 -P //Home/copies
Related
file write— write bytes into an existing Poly file.cp— copy files between local disk and Poly.- How it Works — file reference syntax and the local cache.