| 1 | # PowerShell examples for the installed sau CLI. |
| 2 | |
| 3 | # account_name is user-defined. One account_name maps to one account file. |
| 4 | # You can prepare multiple account names and run them in parallel. |
| 5 | $account = "account_a" |
| 6 | $video = "videos/demo.mp4" |
| 7 | $thumbnail = "videos/demo.png" |
| 8 | $noteImages = @("videos/1.png", "videos/2.png") |
| 9 | |
| 10 | sau douyin login --account $account --headless |
| 11 | sau douyin check --account $account |
| 12 | |
| 13 | sau douyin upload-video ` |
| 14 | --account $account ` |
| 15 | --file $video ` |
| 16 | --title "Douyin video from PowerShell" ` |
| 17 | --desc "Douyin video description from PowerShell" ` |
| 18 | --tags "cli,video" ` |
| 19 | --thumbnail $thumbnail ` |
| 20 | --headless |
| 21 | |
| 22 | sau douyin upload-note ` |
| 23 | --account $account ` |
| 24 | --images $noteImages ` |
| 25 | --title "Douyin note title from PowerShell" ` |
| 26 | --note "Douyin note from PowerShell" ` |
| 27 | --tags "cli,note" ` |
| 28 | --headless |
| 29 |