Skip to content

Command Reference

All commands accept the global flags listed at the bottom. Use flickr <command> --help for full flag details.

Top-level Commands

CommandDescription
versionShow version, commit, date, Go version, and schema version
doctorCheck configuration and connectivity

auth

Manage Flickr OAuth 1.0a credentials.

CommandUsageDescription
auth loginflickr auth loginCreate or refresh OAuth credentials
auth statusflickr auth statusCheck current authentication status
auth logoutflickr auth logoutRemove stored credentials for current profile

Key flags for auth login:

  • --perms — permission level: read, write, delete (default: read)
  • --callback — callback strategy: localhost or oob (default: localhost)
  • --callback-port — local callback port, 0 for auto
  • --api-key / --api-secret — provide credentials directly
  • --api-secret-env — env var name containing the API secret
  • --force — force re-authentication even if already authenticated
bash
flickr auth login --perms write
flickr auth status --json
flickr auth logout --profile work

albums

Manage Flickr albums (photosets).

CommandUsageDescription
albums listflickr albums listList albums
albums showflickr albums show [album-id]Show album metadata
albums photosflickr albums photos [album-id]List photos in an album
albums createflickr albums createCreate a new album
albums updateflickr albums update [album-id]Update album metadata
albums deleteflickr albums delete [album-id]Delete an album
albums add-photosflickr albums add-photos [album-id] --photo-id [id]Add photos to an album
albums remove-photosflickr albums remove-photos [album-id] --photo-id [id]Remove photos from an album

Key flags for albums list:

  • --page / --per-page — pagination
  • --sort — sort by: title, created, updated, count

Key flags for albums create:

  • --title — album title (required)
  • --description — album description
  • --primary-photo-id — primary photo ID (required)
bash
flickr albums list --sort count --json
flickr albums show 72157712345678901
flickr albums create --title "Vacation" --primary-photo-id 12345
flickr albums delete 72157712345678901 --confirm

Key flags for albums update:

  • --title — album title
  • --description — album description
  • --primary-photo-id — primary photo ID

Key flags for albums add-photos / albums remove-photos:

  • --photo-id — photo ID to add/remove (repeatable)

Safety gates:

  • albums create, albums update — blocked by --read-only; support --dry-run
  • albums delete — requires --confirm; blocked by --read-only; supports --dry-run
  • albums add-photos, albums remove-photos — blocked by --read-only; support --dry-run

photos

Manage Flickr photos.

CommandUsageDescription
photos listflickr photos listList your photos
photos searchflickr photos searchSearch photos with filters
photos showflickr photos show [photo-id]Show photo metadata, sizes, albums
photos uploadflickr photos upload [path...]Upload photos
photos downloadflickr photos download [photo-id...]Download photos
photos deleteflickr photos delete [photo-id...]Delete photos
photos set-metaflickr photos set-meta [photo-id]Set photo title and description
photos set-tagsflickr photos set-tags [photo-id]Set photo tags (replaces existing)
photos add-tagsflickr photos add-tags [photo-id]Add tags to photo
photos remove-tagflickr photos remove-tag [photo-id]Remove a tag from photo
photos set-privacyflickr photos set-privacy [photo-id]Set photo privacy
photos set-locationflickr photos set-location [photo-id]Set photo location
photos rotateflickr photos rotate [photo-id]Rotate photo

Key flags for photos remove-tag:

  • --tag-id — tag ID to remove (required)

Key flags for photos search:

  • --text — search text
  • --tag / --machine-tag — filter by tag (repeatable)
  • --min-upload-date / --max-upload-date — date range filters
  • --min-taken-date / --max-taken-date — taken-date range filters
  • --privacy — privacy level filter
  • --user-id — user ID or me

Note: Flickr API does not support combining search filters with album scoping. Use albums photos [album-id] to list photos in a specific album.

Key flags for photos upload:

  • --recursive — recurse into directories
  • --description — description for uploaded files
  • --tag / --tags — tags (repeatable or CSV)
  • --album / --album-id — target albums (repeatable)
  • --privacy / --safety / --content-type / --hidden — upload settings
  • --dedupe — deduplication mode: none, checksum
  • --hash — hash algorithm: md5, sha1
  • --move-after — move files after successful upload
bash
flickr photos search --text "sunset" --tag nature --json
flickr photos show 51234567890
flickr photos upload ./pics/ --recursive --album "Summer" --privacy private
flickr photos set-tags 51234567890 --tag landscape --tag hdr

Safety gates:

  • photos upload, photos set-meta, photos set-tags, photos add-tags, photos remove-tag, photos set-privacy, photos set-location, photos rotate — blocked by --read-only; support --dry-run
  • photos delete — requires --confirm; blocked by --read-only; supports --dry-run

favorites

Manage favorite photos.

CommandUsageDescription
favorites listflickr favorites listList favorite photos
favorites addflickr favorites add [photo-id]Add a photo to favorites
favorites removeflickr favorites remove [photo-id]Remove a photo from favorites

Key flags for favorites list:

  • --page / --per-page — pagination
bash
flickr favorites list --json
flickr favorites add 51234567890
flickr favorites remove 51234567890

Safety gates:

  • favorites add, favorites remove — blocked by --read-only; support --dry-run

galleries

Manage Flickr galleries.

CommandUsageDescription
galleries listflickr galleries listList galleries
galleries photosflickr galleries photos [gallery-id]List photos in a gallery

Key flags for galleries list / galleries photos:

  • --page / --per-page — pagination
bash
flickr galleries list --json
flickr galleries photos 72157712345678901 --per-page 100

groups

Manage Flickr groups.

CommandUsageDescription
groups listflickr groups listList groups you belong to
groups searchflickr groups search [text]Search for groups

Key flags for groups list / groups search:

  • --page / --per-page — pagination
bash
flickr groups list --json
flickr groups search "street photography" --json

comments

Manage photo comments.

CommandUsageDescription
comments listflickr comments list [photo-id]List comments on a photo
comments addflickr comments add [photo-id] [text]Add a comment to a photo
comments deleteflickr comments delete [comment-id]Delete a comment
bash
flickr comments list 51234567890 --json
flickr comments add 51234567890 "Great shot!"
flickr comments delete 123456789 --confirm

Safety gates:

  • comments add — blocked by --read-only; supports --dry-run
  • comments delete — requires --confirm; blocked by --read-only; supports --dry-run

contacts

Manage Flickr contacts.

CommandUsageDescription
contacts listflickr contacts listList your contacts

Key flags:

  • --page / --per-page — pagination
bash
flickr contacts list --json

stats

View Flickr statistics.

CommandUsageDescription
stats popularflickr stats popularShow popular photos
bash
flickr stats popular --json

urls

URL lookup utilities.

CommandUsageDescription
urls lookup-userflickr urls lookup-user [url]Look up a user by profile URL
bash
flickr urls lookup-user "https://www.flickr.com/photos/example/"

cache

Manage local metadata cache.

CommandUsageDescription
cache syncflickr cache syncSync albums and photos to local cache
cache statsflickr cache statsShow cache statistics
cache cleanupflickr cache cleanupRemove expired cache entries

Key flags for cache cleanup:

  • --older-than — remove entries older than duration (default: 720h)
bash
flickr cache sync
flickr cache stats --json
flickr cache cleanup

checksums

Manage photo checksums via machine tags.

CommandUsageDescription
checksums addflickr checksums addAdd checksum machine tags to photos
checksums verifyflickr checksums verifyVerify checksums against original files
checksums searchflickr checksums search [checksum]Search photos by checksum

Key flags for checksums add:

  • --hash — hash algorithm: md5, sha1
  • --user-id — user ID or me
  • --force — recompute even when tag exists
  • --tmp-dir — temporary directory for downloads
bash
flickr checksums add --hash sha1 --user-id me
flickr checksums verify --json
flickr checksums search a1b2c3d4e5f6 --json

api

Direct Flickr API access.

CommandUsageDescription
api callflickr api call [method]Call a Flickr API method
api methodsflickr api methodsList available API methods
api method-infoflickr api method-info [method]Show method parameters and docs

Key flags for api call:

  • --param — method parameter key=value (repeatable)
  • --raw — output raw Flickr JSON inside data.raw
  • --auth — auth requirement: optional, required, none
bash
flickr api call flickr.test.login --auth required --json
flickr api call flickr.photos.search --param text=sunset --param per_page=5

piwigo

Piwigo migration tools.

CommandUsageDescription
piwigo importflickr piwigo importImport photos from Piwigo to Flickr

Key flags:

  • --url — Piwigo instance URL (required)
  • --user — Piwigo username (required)
  • --password — Piwigo password (required)
  • --album-prefix — prefix for created albums
  • --import-album — import album name (default: Imported from Piwigo)
  • --dedupe — deduplication: checksum, none (uses MD5 via Piwigo API)
  • --limit — limit number of imports (0 for all)
bash
flickr piwigo import --url https://photos.example.com --user admin --password secret
flickr piwigo import --url https://photos.example.com --user admin --password secret --json

Safety gates:

  • piwigo import — requires --confirm; blocked by --read-only; supports --dry-run

Global Flags

These flags are available on every command:

FlagDefaultDescription
--configConfig file path
--profiledefaultProfile name
--jsonfalseEmit JSON envelope to stdout
--prettyfalsePretty-print JSON
--compactfalseCompact output fields
--fullfalseFull normalized fields (overrides --compact)
--eventsfalseEmit NDJSON progress events to stderr
--read-onlyfalseBlock remote mutations
--dry-runfalsePlan mutations without execution
--confirmfalseConfirm high-risk mutations
--timeout30sCommand/API timeout
--retries3Retry count for retryable failures
--concurrency4Concurrent upload/download workers
--no-colorfalseDisable ANSI color
--verbosefalseDiagnostics to stderr
--debugfalseDebug diagnostics with secrets redacted
--quietfalseSuppress progress output

Environment Variables

VariableDescription
FLICKR_CONFIGConfig file path (overrides --config)
FLICKR_PROFILEProfile name (overrides --profile)
FLICKR_READ_ONLYSet to 1/true to enable read-only mode
FLICKR_TIMEOUTCommand/API timeout (overrides --timeout)
FLICKR_RETRIESRetry count (overrides --retries)
FLICKR_CONCURRENCYConcurrent workers (overrides --concurrency)
FLICKR_DEBUGSet to 1/true to enable debug diagnostics
FLICKR_API_KEYFlickr API key
FLICKR_API_SECRETFlickr API secret
FLICKR_OAUTH_TOKENOAuth access token
FLICKR_OAUTH_TOKEN_SECRETOAuth access token secret

Built with VitePress