| 1 | # login |
| 2 | # Run this in a local interactive terminal. |
| 3 | # If the terminal QR code is incomplete, open ./qrcode.png and scan that image. |
| 4 | account="account_a" |
| 5 | # account_name is user-defined. One account_name maps to one account file. |
| 6 | # You can prepare multiple account names and run them in parallel. |
| 7 | |
| 8 | sau bilibili login --account "$account" |
| 9 | |
| 10 | # check |
| 11 | sau bilibili check --account "$account" |
| 12 | |
| 13 | # upload video |
| 14 | sau bilibili upload-video \ |
| 15 | --account "$account" \ |
| 16 | --file ./videos/demo.mp4 \ |
| 17 | --title "Bilibili CLI Demo" \ |
| 18 | --desc "Bilibili CLI Demo" \ |
| 19 | --tid 249 \ |
| 20 | --tags 足球,测试 \ |
| 21 | --schedule "2026-03-26 16:00" |
| 22 |