The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Industrial IoT Open Source Tools and Libraries

Demo applications, libraries and SDKs as well as useful connectivity tools which are maintained and released as open source software.

mdsp service-credentials Command¶

Syntax:

mdsp service-credentials

Help:

mdsp service-credentials --help

Alternative form:

mc service-credentials

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

Description¶

provide login for commands which require technical user credentials *

Usage¶

Parameter list:

Usage: mdsp service-credentials|sc [options]

provide login for commands which require technical user credentials *

Options:
 -m, --mode [config|list|select|add] config | list | select | add (default: "config")
 -i, --index select credentials with specified index
 -y, --type type (APP | SERVICE) (default: "APP")
 -o, --port port for config web server (default: "4994")
 -u, --user credentials: username
 -p, --password credendials: password
 -g, --gateway region string or full gateway url (e.g. eu1, eu2 or https://gateway.eu1.mindsphere.io)
 -t, --tenant your tenant name
 -s, --usertenant your user tenant name
 -a, --appName your application name (e.g. cli)
 -p, --appVersion your application version (e.g. 1.0.0)
 -k, --passkey passkey (you will use this in the commands which require service credentials)
 -v, --verbose verbose output
 -h, --help display help for command

Examples¶

Here are some examples of how to use the mdsp service-credentials command:

 Example:

 mdsp service-credentials --mode config start configuration web server on http://localhost:4994
 mdsp service-credentials --mode config --port 10000 start configuration web server on http://localhost:10000
 mdsp service-credentials --mode list list all configured credentials
 mdsp service-credentials --mode select --index select credentials with index from the list
 mdsp service-credentials --mode add --type APP ... add new APP credentials

See Insights Hub API documentation for more information about Insights Hub APIs.