返回 Social Auto Upload
xiaohongshu_commands.ps1
根目录 / skills / xiaohongshu-upload / scripts / examples / xiaohongshu_commands.ps1
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 xiaohongshu login --account $account --headless
11 sau xiaohongshu check --account $account
12
13 sau xiaohongshu upload-video `
14 --account $account `
15 --file $video `
16 --title "Xiaohongshu video from PowerShell" `
17 --desc "Xiaohongshu video description from PowerShell" `
18 --tags "cli,video" `
19 --thumbnail $thumbnail `
20 --headless
21
22 sau xiaohongshu upload-note `
23 --account $account `
24 --images $noteImages `
25 --title "Xiaohongshu note title from PowerShell" `
26 --note "Xiaohongshu note from PowerShell" `
27 --tags "cli,note" `
28 --headless
29
29 lines Plain Text