电商产品图卡
使用 higgsfield marketplace-cards create 创建符合电商平台标准的产品图片。CLI 首先调用后端增强器(其中私有地维护着电商平台规则和模板),然后提交 nano_banana_2 作业,并打印结果 URL。
引导
- 如果
higgsfield不在$PATH中,请通过 Bash 运行官方安装脚本来安装:curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh。 - 如果
higgsfield account status因认证错误失败,请让用户运行higgsfield auth login。
用户体验规则
- 使用用户的语言回复。
- 在运行之前,最多只问一个简短的确认问题。
- 优先使用产品图片。如果用户仅提供文本或 URL,请仅在产品详情明确时才执行。
- 不要自己编写最终的图片生成提示词。后端增强器负责此工作。
- 最终答案应仅包含准备好的图片 URL 和简短标签。
范围选择
当用户询问常见的套装时,使用 --scope:
| 范围 | 创建内容 |
|---|---|
main | 1 张电商主图 |
product-images | 主图 + 5 张辅图 |
aplus | 主图 + 7 个 A+ 模块 |
full-set | 主图 + 5 张辅图 + 7 个 A+ 模块 |
仅对自定义子集使用重复的 --asset:
main_imageinfographicmulti_angledetail_shotlifestylewhats_in_boxaplus_hero_banneraplus_pain_pointsaplus_featuresaplus_ingredientsaplus_efficacyaplus_how_to_useaplus_endorsement
命令
根据用户的请求构建并运行一个 higgsfield marketplace-cards create 命令。
对于常见套装,使用 --scope <main|product-images|aplus|full-set>、--prompt "<简短的产品和展示意图>"、可选的重复 --image <路径或上传ID>,以及可选的上下文标志:--product_context、--brand_context、--category、--visual_style。
选择参数时参考以下示例:
- 产品图片:
higgsfield marketplace-cards create --scope product-images --prompt "sparkling peach lemonade can for marketplace listing" --image ./can.png --category "beverage" - 完整套装:
higgsfield marketplace-cards create --scope full-set --prompt "premium skincare serum, clean clinical marketplace visual system" --image ./serum.jpg --brand_context "minimal white and sage palette" - 自定义子集:重复
--asset,例如--asset main_image --asset infographic --asset lifestyle。 - 使用已完成的主图作业:结合需要补全的辅图或 A+ 模块的
--asset值,使用--main-job <完成的主图作业ID>。
交付
打印带标签的 URL:
Marketplace cards ready:
- Main image: https://...
- Infographic: https://...
- Lifestyle: https://...
除非用户明确要求,否则避免输出 JSON、作业 ID、内部模型名称或增强后的提示词文本。