Skip to content

Add CLI exporter commands#168

Open
oymy wants to merge 1 commit into
wechat-article:masterfrom
oymy:codex/add-cli-exporter
Open

Add CLI exporter commands#168
oymy wants to merge 1 commit into
wechat-article:masterfrom
oymy:codex/add-cli-exporter

Conversation

@oymy
Copy link
Copy Markdown

@oymy oymy commented May 6, 2026

Summary

Add a command-line client for the local Nuxt backend so common workflows can be used without operating the web UI.

The CLI supports:

  • QR-code login and auth-key detection
  • account search and account resolution by article URL
  • article listing by account/fakeid with optional year filtering
  • single article download as html/markdown/text/json
  • year-based zip export for html/markdown/text/json, Word, and PDF
  • album/comment/proxy helper commands
  • raw backend API passthrough via api

This also copies the CLI into the Docker runtime image and documents usage in cli/README.md.

Testing

  • node --check cli/wechat-exporter.mjs
  • node cli/wechat-exporter.mjs --help
  • Manually verified QR-code login flow against a local Docker deployment
  • Manually verified article listing and Word export against a local Docker deployment

Note: Docker rebuild was blocked in the local environment by permission approval timeout after the latest additions, but the earlier Docker deployment verified the CLI runtime pattern and login/list/export workflow.

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