对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

agentengine 密钥同步

将密钥同步到部署。

将已存储在平台上的值重新加载到活动部署中。此命令绝不会从本地文件导入密钥值。

只有在项目运行时切换到这些值之后,才会打印“成功”,因此下一条消息可以使用它们。当前轮次保留先前的值。如果没有正在运行的部署,该命令仍会等待项目运行时。

默认情况下,这会同步项目范围的密钥(在项目中的所有工作区之间共享)。若要改为同步工作区范围的密钥,请传递 --workspace-scope 或提供 --workspace-id。

对于关联到 Atlas 的上下文,此操作会同步项目范围内的部署,如果仍存在旧版 .env.<context> 文件,系统可能会发出警告(该文件不会被读取)。

--context 仅指定组织和项目,因此请将其与 --project-scope 结合使用。

agentengine secret sync [flags]
--base-url string Platform base URL --context string Named context to target (see 'agentengine context list')-h, --help help for sync --org-id string Organization ID --project-id string Project ID --project-scope Target project-scoped secrets (the default; explicit alternative to --workspace-scope) --workspace string Monorepo: target a specific workspace by name (from root agent.yaml) --workspace-id string Workspace ID --workspace-scope Target workspace-scoped secrets instead of project-scoped secrets (the default)
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)
给本页内容打分