Skip to content

docs: fix archive from-immich flags - #1393

Open
arturict wants to merge 2 commits into
simulot:developfrom
arturict:fix/docs-archive-flags
Open

arturict wants to merge 2 commits into
simulot:developfrom
arturict:fix/docs-archive-flags

Conversation

@arturict

@arturict arturict commented Jul 12, 2026

Copy link
Copy Markdown

What changed

  • use the actual archive from-immich source flags (--from-server and --from-api-key) in archive examples
  • keep upload commands on their destination flags (--server and --api-key)
  • fix the album examples to use the supported plural --from-albums flag

Why

The documented archive commands used destination-style flags, which Cobra rejects for archive from-immich. Copying those examples therefore failed before an archive could start.

This addresses the incorrect archive flags reported in #1353. The separate positional-arguments error in that issue is not claimed as fixed here.

Validation

  • go run . archive from-immich --help (confirmed the documented archive flags match the command surface)
  • invoked a complete archive example through argument parsing; it accepted every flag and reached the expected server connection attempt
  • go test ./...
  • git diff --check

@arturict
arturict marked this pull request as ready for review July 12, 2026 16:25
@arturict
arturict requested a review from simulot as a code owner July 12, 2026 16:25
@arturict
arturict marked this pull request as draft July 13, 2026 14:50
@arturict
arturict marked this pull request as ready for review July 13, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant