Prefer using sau as the primary interface.
Do not start by making the user find biliup themselves or manually download a release.
The program will automatically check, automatically download, and automatically update at runtime biliup。
Feature Overview
| Feature | Command Entry | Description |
|---|---|---|
| Login | sau bilibili login --account <name> |
The user needs to execute this themselves in a real local terminal, used to generate or refresh login information |
| Verification | sau bilibili check --account <name> |
Check whether the specified account is currently valid |
| Video Upload | sau bilibili upload-video ... |
Upload one Bilibili video |
Default Workflow
- First confirm
references/runtime-requirements.md - Then confirm
references/cli-contract.md - Execute the matching
sau bilibili ...command - If the command fails, then check
references/troubleshooting.md
Command Selection Suggestions
- If the user has no login information, first have the user execute it themselves in the local terminal
login - If the user only wants to confirm account status, first use
check - If the user wants to post a video, use
upload-video
Pre-execution Checks
- First confirm that the current environment can run
sau - If
sauis not in PATH, you can use the one in the repositorysau_cli.py - Do not require the user to manually download
biliup - When running a Bilibili command for the first time, the program may automatically connect to the internet to prepare
biliup - For the agent, do not force-run in a non-interactive environment
sau bilibili login - The correct approach is to have the user execute it themselves in the local terminal
sau bilibili login --account <name> - If the QR code displayed in the terminal is incomplete, remind the user to directly open the one in the current directory
qrcode.pngto scan the code
Template Files
scripts/examples/bilibili_commands.ps1scripts/examples/bilibili_commands.shscripts/examples/bilibili_cli_template.py
Reference Documentation
- Runtime prerequisites:
references/runtime-requirements.md - CLI contract:
references/cli-contract.md - Troubleshooting:
references/troubleshooting.md