Skip to main content
Version: 2.5

Concepts

tsm keeps your connections in one personal configuration file. Five terms describe them:

ConceptWhat it isExample
ProjectA group of related environmentstsm
EnvironmentOne tSM installation, identified by its URLdev, test
AccountYour credentials for one environment (API key, username/password or token)personal
ContextEnvironment + account + tenant: where and as whom a command runsdev
WorkspaceA Git checkout of a project registered under a namedemo

Credentials are stored in the operating system's credential store, never in the configuration file.

Which context is used​

  1. --context NAME on the command line,
  2. otherwise the default context of the current workspace,
  3. otherwise the global default set by tsm context use NAME --global.

tsm context show --explain prints the selected context and why it was chosen.

Workspaces​

A workspace is selected by --workspace NAME|PATH, or by the current directory (the nearest registered parent). There is no globally active workspace. A context never changes the checkout: switching --context only changes where commands send requests.

tsm-project.yaml in the checkout is shared in Git and holds only project/product/packages/components. Personal connections, paths and credentials do not belong there.

In the experimental CLI build, a workspace can also run its own local tSM instance; see Local runtime.