@dianxiaobaonpm/dxb-cli
v1.1.7
Published
Dianxiaobao CLI for AI product publishing and AI image processing.
Maintainers
Readme
@dianxiaobaonpm/dxb-cli
店小宝 CLI for AI product publishing and AI image processing.
Usage
dxb --help
dxb auth login --user-code <userCode> --dispatch-warehouse 大陆,台湾
dxb auth status
dxb batch submit --user-code <userCode> --store-name <storeName> --action ai_release_products --source-url-list <urls> --dispatch-warehouse CN,TW
dxb batch submit --user-code <userCode> --store-name <amazonStoreName> --action ai_release_products --source-url-list <urls> --site-ids ATVPDKIKX0DER --gtins 6979171900171,6979171900263
dxb batch submit --user-code <userCode> --store-name <shopeeGlobalStoreName> --action ai_release_products --source-url-list <urls> --site-store-names ycmcwl
dxb batch submit --user-code <userCode> --store-name <shopeeNormalStoreName> --action ai_release_products --source-url-list <urls>
dxb status ai --user-code <userCode> --plan-id <planId> --store-name <storeName>
dxb image submit --user-code <userCode> --action agent_use_cut --images <urls>
dxb image submit --user-code <userCode> --action agent_use_translate --src-lang zh --tgt-lang en --images <urls>
dxb image submit --user-code <userCode> --action agent_use_resize --scale-type keepOld --side-type width --change-length 800 --images <urls>
dxb image status --user-code <userCode> --record-id <recordId>Authorization uses the 店小宝 user secret from account settings:
用户密文(国际站): https://icbu.dianxiaobao.net/basic/account/setting
用户密文(其他平台): https://erp.dianxiaobao.net/basic/account/settingBusiness commands should pass --user-code explicitly. The CLI can still read a saved profile, but Accio Work command generation should not rely on connector injection or local config for submit/status calls.
Alibaba.com dispatch locations are required for Taiwan and Hong Kong users; other users should omit this setting. Values can be entered as 大陆, 台湾, 香港 or as CN, TW, HK. Separate multiple values with commas. TW and HK are mutually exclusive. The API request serializes the normalized values as a JSON array string, for example "dispatchWarehouse": "[\"CN\",\"TW\"]".
Amazon publishing requires siteIds. Supported values are:
| siteId | Country |
| --- | --- |
| A1AM78C64UM0Y8 | 墨西哥 |
| A2EUQ1WTGCTBG2 | 加拿大 |
| A2Q3Y263D00KWC | 巴西 |
| ATVPDKIKX0DER | 美国 |
If the user does not have UPC exemption, pass UPC/GTIN codes with --gtins.
If the user has UPC exemption, omit --gtins.
For Shopee stores, --site-store-names is optional. Pass it only when the user provides target site store names; otherwise omit it.
