Skip to main content

Connecting from the CLI

To use Testkube CLI to connect to your Testkube Cloud install you will need to set the CLI Context. For that you will need a Testkube Cloud token.

The token you create can have different roles associated with it for fine-grained control:

  • Admin access rights (access to all environments):

Admin Token

  • Specific role for selected environments:

Roles for Token

When the token is created, you're ready to change the Testkube CLI context:

Setting Context

Connecting Using kubeconfig Context

If you want to connect to your Testkube instance directly (like you would do with kubectl), set the CLI Context to be kubeconfig-based:

testkube set context --kubeconfig