For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

agentengine context pin

Bind the current agent directory to a named context.

Bind the agent directory found by walking up from the current directory to context NAME. Workspace-scoped commands run from here resolve NAME’s base URL, organization, and project whenever no --context or explicit target flags are given.

A directory with no pin is pinned without a prompt. Re-pinning a directory to a different context asks first; --yes skips the prompt, and a non-interactive run without --yes is refused.

agentengine context pin NAME [flags]
agentengine context pin prodagentengine context pin local --yes
-h, --help help for pin --json Output JSON-y, --yes Skip the interactive confirmation prompt
--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)
Rate this page