Choose a project interactively
At a terminal, run:--query before sign-in or network access. For agents or scripts, use the manual commands below.
Use your saved context
--profile, --org-id, --project-id, or --json on these commands. Normal output uses the default auto renderer. Environment overrides still take precedence over saved settings, so check the effective context before making changes.
Manual selection for scripts
For non-wizard setup, first prepare authentication using your deployment settings. Discover the choices:ORG_ID with an organization ID from the first result. Choose a project from the second result, then save both IDs:
context use checks access to the organization and project before saving them to the selected local profile. The options after context use are required for this one-time selection; they are not needed on each later command. context show also reports the service URL, audience, authentication mode and config path. A saved project does not imply current permission: service authorization still applies to every request.
Switch between saved profiles
To create or update a named profile interactively, runtp profile setup and enter its name. The wizard resolves connection defaults for that target profile, rather than copying the previously active profile. For offline connection settings, use tp --profile work configure, then select context with the manual commands above.
For unattended configuration after discovery, save explicit IDs without prompts:
work with:
tp profile list to see saved names and tp profile show to inspect the selected profile. Selecting a profile does not switch the signed-in Azure account.
Override the profile or destination for one command
Override the profile or destination for one command
Global options go before the command path. Use an override only when this invocation should differ from the active profile:These overrides do not change the active profile or its saved context.
context projects --org-id is a command-local discovery option, while the identically named root option overrides the invocation’s default context.Profile selection uses --profile, then THINKPLATFORM_PROFILE, then the active saved profile (or default). Individual settings use explicit flags, then environment settings, then the selected profile. See authentication for the full precedence table.Read context as JSON for a script
Read context as JSON for a script
{"profile":"work","org_id":4,"project_id":18}. Use IDs from your own environment. This JSON flag is optional for normal terminal use; scripts that parse JSON should request it explicitly. See scripting and output.