MindSphere CLI: mdsp agent-token Command


mdsp agent-token


mdsp agent-token --help

Alternative form:

mc agent-token

(The CLI was using mc as default command name in older versions)


displays the agent token for use in other tools (e.g. postman)


Parameter list:

Usage: mc agent-token|atk [options]

displays the agent token for use in other tools (e.g. postman)

  -c, --config   config file with agent configuration (default: "agentconfig.json")
  -k, --passkey      passkey
  -r, --cert [privatekey]     required for agents with RSA_3072 profile. create with: openssl genrsa -out private.key 3072
  -y, --retry         retry attempts before giving up (default: "3")
  -v, --verbose               verbose output
  -h, --help                  display help for command


Here are some examples of how to use the mdsp agent-token command:


    mdsp agent-token   				uses default agentconfig.json
    mdsp agent-token --config agent.json 		uses specified configuration file
    mdsp agent-token --cert private.key 		uses specified key for RSA_3072 profile
    mdsp agent-token --verbose 			displays encoded and decoded version of the token

See MindSphere API documentation for more information about MindSphere APIs.

The content of the community tools and libraries documentation pages is licensed under the MIT License.
Siemens API Notice applies.
Back to top