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.
Docs Menu

agentengine context create

Create a named platform target.

Create a context named NAME binding a platform base URL, organization, and project. Without --org-id or --project-id this prompts with the organizations and projects visible to your current login. --base-url defaults to the only platform you are logged into, and is required when you are logged into more than one.

Creating a name that already exists fails; a context cannot be rebound yet.

agentengine context create NAME [flags]
agentengine context create prod
agentengine context create local --base-url http://localhost:30050
--base-url string Platform API base URL (default: your current login, if you are logged into only one platform; required otherwise)
-h, --help help for create
--json Output JSON
--org-id string Organization ID (default: prompts)
--project-id string Project ID (default: prompts)
--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