跳到主要内容

ideon config

命令作用​

ideon config 提供面向脚本、CI 与 agent 的非交互配置接口。

它与 ideon settings 互补:后者保持交互式。

用法​

ideon config list [--json]
ideon config get <key> [--json]
ideon config set <key> <value>
ideon config unset <key>

子命令​

ideon config list​

列出当前持久化 settings 与 secret 可用性状态。

ideon config list
ideon config list --json

ideon config get​

读取单个 setting key 或 secret 可用性 key。

ideon config get style
ideon config get openRouterApiKey --json

ideon config set​

设置单个 setting 或 secret 值。

ideon config set style technical
ideon config set openRouterApiKey "$TELEPAT_OPENROUTER_KEY"

ideon config unset​

将 setting 恢复默认值,或移除已存储 secret。

ideon config unset style
ideon config unset openRouterApiKey

支持的 Key​

Settings keys:

  • model
  • modelSettings.temperature
  • modelSettings.maxTokens
  • modelSettings.topP
  • modelRequestTimeoutMs
  • notifications.enabled
  • markdownOutputDir
  • assetOutputDir
  • style
  • targetLength
  • seoCheckMode
  • seoCheckMaxTurns

targetLength 取值说明:

  • 支持别名 small、medium、large,也支持正整数词数。
  • 别名映射为 small=500、medium=900、large=1400。

seoCheckMode 取值说明:

  • errors-only(默认):无 severity: error 的 lint 问题时 SEO 检查阶段通过;警告会记录但不会导致阶段失败或触发编辑器智能体。
  • strict:仅当 lint 问题为零时通过;任何警告都会触发编辑器智能体。

seoCheckMaxTurns 取值说明:

  • 正整数 1–20(默认 10)。限制 SEO 检查阶段编辑器智能体的轮次。

Secret keys:

  • openRouterApiKey
  • replicateApiToken
  • googleAdsDeveloperToken
  • googleAdsClientId
  • googleAdsClientSecret
  • googleAdsRefreshToken
  • googleAdsCustomerId
  • googleAdsLoginCustomerId

对于 Google Ads 凭据设置,请使用 ideon gads login 进行交互式引导设置,或通过 ideon config set 单独设置。详见 Google Ads Keyword Planner 设置。

输出与退出码​

退出码含义
0命令执行成功。
1出现校验、key 或存储错误。
130命令被 Ctrl+C 中断。

相关命令​

版本与弃用说明​

  • 当前行为适用于 Ideon 0.1.6。
  • 此命令组面向非交互 one-shot 工作流。