docs: clarify account name semantics
This commit is contained in:
@@ -9,6 +9,9 @@ from utils.constant import VideoZoneTypes
|
||||
|
||||
|
||||
def main() -> None:
|
||||
account = "account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
cli_path = Path(BASE_DIR) / "sau_cli.py"
|
||||
command = [
|
||||
sys.executable,
|
||||
@@ -16,7 +19,7 @@ def main() -> None:
|
||||
"bilibili",
|
||||
"upload-video",
|
||||
"--account",
|
||||
"creator",
|
||||
account,
|
||||
"--file",
|
||||
str(Path(BASE_DIR) / "videos" / "demo.mp4"),
|
||||
"--title",
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
# 登录
|
||||
# 建议由用户自己在本地真实终端里执行。
|
||||
# 如果终端二维码显示不完整,可以打开当前目录下的 qrcode.png 扫码。
|
||||
sau bilibili login --account creator
|
||||
$account = "account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
|
||||
sau bilibili login --account $account
|
||||
|
||||
# 校验
|
||||
sau bilibili check --account creator
|
||||
sau bilibili check --account $account
|
||||
|
||||
# 上传视频
|
||||
sau bilibili upload-video `
|
||||
--account creator `
|
||||
--account $account `
|
||||
--file .\videos\demo.mp4 `
|
||||
--title "Bilibili CLI Demo" `
|
||||
--desc "Bilibili CLI Demo" `
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
# login
|
||||
# Run this in a local interactive terminal.
|
||||
# If the terminal QR code is incomplete, open ./qrcode.png and scan that image.
|
||||
sau bilibili login --account creator
|
||||
account="account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
|
||||
sau bilibili login --account "$account"
|
||||
|
||||
# check
|
||||
sau bilibili check --account creator
|
||||
sau bilibili check --account "$account"
|
||||
|
||||
# upload video
|
||||
sau bilibili upload-video \
|
||||
--account creator \
|
||||
--account "$account" \
|
||||
--file ./videos/demo.mp4 \
|
||||
--title "Bilibili CLI Demo" \
|
||||
--desc "Bilibili CLI Demo" \
|
||||
|
||||
Reference in New Issue
Block a user