Quick start
Language: 中文 · English
Download one work to check your login and connection, then set up batch collection or scheduling. Run these commands in PowerShell on Windows, or a terminal on macOS / Linux.
Install and sign in
You need Node.js 22.13+, npm 9+, a Pixiv account and a network that can reach Pixiv.
node -v
npm -v
npm install -g pixivflow
pixivflow --helpOnce the help text appears, sign in:
pixivflow loginThe program opens Chrome / Chromium on your computer. After login, it saves credentials to the active configuration for later downloads. Servers and phones can import an existing login token; see the login guide.
Download your first work
Replace the example URL with a real work link:
pixivflow download --url "https://www.pixiv.net/artworks/123456789"You can download a novel too:
pixivflow download --url "https://www.pixiv.net/novel/show.php?id=12345678"After downloading, check file locations and records:
pixivflow dirs
pixivflow statusdirs shows the actual paths for your configuration, downloads and database. Global installations and source checkouts can use different paths; check this output before editing configuration or looking for files.
To view records in a browser, run pixivflow web and open the address shown in the terminal. The default is http://localhost:3000. Keep the command running while using the interface.
Download by tag
For initial setup of tags, storage and scheduling, run pixivflow setup. If you already have a configuration, back it up and edit it:
pixivflow config backup
pixivflow config editReplace targets with the array below and keep other fields, including pixiv. This example downloads up to 20 landscape illustrations per run:
{
"targets": [
{ "type": "illustration", "tag": "風景", "limit": 20 }
]
}Save, validate and download:
pixivflow config validate
pixivflow downloadWorks already in your download history are skipped, so new downloads may be fewer than limit. See the configuration reference for more filters.
Set a download schedule
Add or update scheduler in your existing configuration. This example runs daily at 03:00 in the Asia/Shanghai time zone:
{
"scheduler": {
"enabled": true,
"cron": "0 3 * * *",
"timezone": "Asia/Shanghai"
}
}Save and start:
pixivflow config validate
pixivflow schedulerKeep the program running and the computer on. Press Ctrl+C to stop. For server operation, see the Docker guide.
Troubleshooting
| Symptom | What to check |
|---|---|
| Command not found | Reopen the terminal; check the global npm installation and that its executable directory is in PATH |
| Login fails or credentials expire | Run pixivflow login again, or import a valid token as described in the login guide |
| No works downloaded | Check tags, dates and bookmark filters; matching works may already be downloaded |
| Cannot reach Pixiv | Run pixivflow health; see the network settings if you need a proxy |
| Scheduled task did not run | Check scheduler.enabled, the time zone and schedule, and whether the process is still running |
When asking for help, include your version, operating system, command and error output. Remove passwords, tokens and other credentials first.