context

Use the context plug-in to create a context for a TMC instance.

Installation

tanzu plugin install --group vmware-tmc/default

Usage

tanzu mission-control context [command]

Commands

  create        Create a TMC context

create

Create a TMC context. This supports the following authentication types: * SaaS - for instances running in VMware Cloud services * VCD - for TMC Self-Managed through VMware Cloud Director * Pinniped, web browser workflow - For TMC Self-Managed only * Pinniped, non-interactive - For TMC Self-Managed only

Usage

  tanzu mission-control context create <context-name> [flags]

Flags

      --basic-auth                  username/password login for Pinniped
  -e, --endpoint string             TMC endpoint
  -h, --help                        help for create
  -i, --idp-type string             identity provider; it can be csp (default when omitted), pinniped, or vcd
      --insecure                    skip x509 cert verification when interacting with upstream IDP (except CSP)
      --vcd-issuer string           VCD issuer url
      --vcd-client-id string        VCD OIDC client id
      --vcd-org string              VCD org id

Example Logins

  • CSP [1]: context create my-new-context --endpoint my-org.tmc.cloud.vmware.com
  • VCD [1]: context create my-new-context --endpoint yourtmcsm.fqdn --idp-type vcd --vcd-org ORG --vcd-issuer ISSUER --vcd-client-id CLIENTID
  • Pinniped, web browser flow: context create my-new-context --endpoint yourtmcsm.fqdn --idp-type pinniped
  • Pinniped, non-interactive [2]: context create my-new-context --endpoint yourtmcsm.fqdn --idp-type pinniped --basic-auth

NOTES: 1. Export the TANZU_API_TOKEN env var to suppress the interactive prompt to enter the API token. 2. Export the TMC_SELF_MANAGED_USERNAME and TMC_SELF_MANAGED_PASSWORD env vars to suppress the interactive prompts to enter the username and password.

check-circle-line exclamation-circle-line close-line
Scroll to top icon