SEARCH, BUILD, VERIFY

gallery-dl Commands

Search practical gallery-dl command examples, copy the flags you need, and use the builder to combine them into a command that matches your URL, operating system, output folder, and repeat-download workflow.

Searchable command libraryInteractive builderOfficial option names
SEARCHABLE CHEATSHEET

Find a gallery-dl command

Filter common commands by task. Every example uses a placeholder URL or local path and should be reviewed before running.

OFFICIAL DOWNLOAD

gallery-dl Commands: Searchable Examples & Builder

Choose your system. The download starts after a 15-second countdown.

gallery-dl Commands: Searchable Examples & Builder. Choose your system. The download starts after a 15-second countdown. Check the filename and use the checksums published by the project when verifying a download.

Version1.32.8
ReleasedJuly 25, 2026
SourceOfficial Codeberg release
LicenseGPL-2.0
Choose a download to start the countdown.

Check the filename and use the checksums published by the project when verifying a download. Codeberg v1.32.8

Command pattern

Most tasks follow gallery-dl [OPTIONS] URL. Quote URLs and paths, begin with --simulate, then add one option at a time. Use --help for the installed release because available flags can change between versions.

DAILY REFERENCE

Essential gallery-dl commands and what they do

A short command is easier to audit than a long copied one. Start by confirming the installed version and simulating a single supported URL. If the correct extractor appears, choose a destination and perform a small download. Add authentication only when the public request cannot provide the content your own account is permitted to access.

Options may be written before the URL, which keeps the final target easy to see. Quotes are important on every operating system: URLs can contain shell characters, and paths can contain spaces. The examples below use neutral placeholders so you can replace them without sending a URL, cookie, or local path to this website.

TaskCommand or optionWhy it matters
Check versiongallery-dl --versionConfirms the executable on PATH
Preview workgallery-dl --simulate URLExtracts without downloading
Choose base folder--destination PATHKeeps downloads under one root
Read browser session--cookies-from-browser BROWSERUses a local signed-in profile
Skip completed IDs--download-archive FILEMakes recurring jobs resumable
Inspect metadata-K URLLists fields for filenames and filters
Show extractor-E URLExplains which extractor recognizes the URL
Show config status--config-statusFinds active configuration behavior
LIMIT THE JOB

gallery-dl commands for ranges, dates, and filters

Ranges limit positions, while date options compare date metadata supplied by an extractor. These are different controls. A range such as 1-25 is useful for a small trial; a date window is useful for incremental collection when the site exposes dependable timestamps. Neither option should be assumed to work identically for every URL type.

Filters are Python-style expressions evaluated against extractor metadata. First run -K on the same kind of URL, identify the exact field and value type, then test the expression with --simulate. A syntactically valid filter can still exclude every item if a field is missing or its value is not what an example assumed.

First 25 items
gallery-dl --range "1-25" --simulate "URL"
Date window
gallery-dl --date-after 2026-01-01 --date-before 2026-06-30 --simulate "URL"
Common image extensions
gallery-dl --filter "extension in ('jpg', 'jpeg', 'png', 'gif', 'webp')" --simulate "URL"
Inspect available fields
gallery-dl -K "URL"
REPEAT SAFELY

Archive, metadata, and ZIP commands

A download archive stores extractor IDs after successful downloads. It is more reliable than checking filenames because names can change and files can be moved. Give recurring jobs a stable archive path, back it up with the configuration it belongs to, and avoid casually sharing one archive across unrelated jobs when you do not understand their ID formats.

Metadata sidecars are useful when you need searchable context outside the media file. ZIP output can simplify storage, but test it on a small job and keep adequate free disk space. An archive records completed items; it is not a backup of downloaded media and it does not validate the contents of files you later move or delete.

Archive completed IDs
gallery-dl --download-archive "gallery-dl.sqlite3" "URL"
Write metadata files
gallery-dl --write-metadata "URL"
Create ZIP output
gallery-dl --zip "URL"
Combine safeguards
gallery-dl --simulate --range "1-10" --download-archive "gallery-dl.sqlite3" "URL"
Generated does not mean pre-approved

Read every generated command before running it. Confirm the URL, destination, browser profile, archive path, filters, permissions, and available disk space on your own device.

FIND THE LAYER

Diagnostic gallery-dl commands

Troubleshooting is faster when you separate installation, configuration, URL recognition, authentication, and downloading. Check the executable version first. Then run with configuration ignored, simulate the URL, and identify the extractor. If that clean request succeeds, an older config value is likely involved. If it fails before extraction, verify the URL pattern and supported-sites documentation.

Use verbose or diagnostic output carefully because logs can contain URLs, filenames, account names, headers, or other private context. Redact those details before sharing a minimal error report. Update from the same installation channel you originally used so an older executable elsewhere on PATH does not keep winning.

Ignore all config
gallery-dl --config-ignore --simulate "URL"
Check config
gallery-dl --config-status
List extractors
gallery-dl --list-extractors
Update a pip install
python -m pip install -U gallery-dl
READ BEFORE EXECUTION

Review gallery-dl commands before running them

Review gallery-dl commands before running them, including commands produced by this builder. Confirm the target URL, destination, cookie selector, archive database, range, date window, and filter expression. Short gallery-dl commands are easier to understand, so add one verified option at a time and keep --simulate until paths and selected items look correct.

Save recurring gallery-dl commands only after a successful limited run. Replace embedded private URLs with local variables when appropriate, protect scripts that reveal browser profiles, and record the installation method beside scheduled jobs. When gallery-dl commands stop behaving as expected, compare the saved command with a config-free simulation before rewriting multiple flags. Reviewed gallery-dl commands are reproducible evidence; copied one-liners without context are not.

Authoritative references

Official command-line optionsOfficial gallery-dl documentation
NEXT STEP

Related gallery-dl resources

FAQ

gallery-dl commands FAQ

What is the basic gallery-dl command syntax?

Use gallery-dl [OPTIONS] URL. Quote the URL and test with --simulate before a large download.

Which gallery-dl commands show what would download?

Use --simulate in gallery-dl commands to extract without downloading. Add -E to inspect extractor information and -K to list metadata fields.

How do I make gallery-dl download again?

If an archive is skipping an ID, first verify why. Use a separate archive or intentionally remove the relevant record only when you understand the duplicate and storage consequences.

How do I save gallery-dl files to a specific folder?

Use --destination for a base folder or --directory for an exact directory. Quote paths that contain spaces.

Which gallery-dl commands update the program?

Update gallery-dl through the channel that installed it, such as python -m pip install -U gallery-dl for pip. Then confirm with gallery-dl --version.

Can gallery-dl commands contain several URLs?

Review gallery-dl commands before combining URLs. The CLI accepts URLs, but a URL list file or carefully reviewed script is usually easier to audit for many jobs. Keep archives and destination rules explicit.