Skip to content

Commands Credential

packy edited this page Jun 18, 2026 · 1 revision

credential — 凭证管理

管理微信凭证和中转服务器配置。

用法

# 查看当前凭证(SECRET 脱敏显示)
wx-newspic credential show

# 设置微信凭证
wx-newspic credential set --app-id "wx_xxx" --app-secret "secret_xxx"

# 配置中转服务器
wx-newspic credential set --server "https://your-server.com" --api-key "sk-xxx"

# 从 .env 文件导入(参考 .env.example)
wx-newspic credential set --file ./.env

# 检查凭证是否有效
wx-newspic credential check

凭证来源优先级

CLI 参数 > 环境变量 > .env 文件。

凭证持久化存储在 ~/.openclaw/skills/wx-newspic/.env,后续无需重复配置。

Clone this wiki locally