MindSphere CLI: mdsp dev-proxy Command


mdsp dev-proxy


mdsp dev-proxy --help

Alternative form:

mc dev-proxy

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


starts MindSphere development proxy & (optional passkey) *


Parameter list:

Usage: mc dev-proxy|px [options]

starts MindSphere development proxy & (optional passkey) *

  -m, --mode [credentials|session]  service/app credentials authentication of session authentication (default: "session")
  -o, --port                  port for web server (default: "7707")
  -r, --norewrite                   don't rewrite hal+json urls
  -w, --nowarn                      don't warn for missing headers
  -d, --dontkeepalive               don't keep the session alive
  -v, --verbose                     verbose output
  -s, --session            borrowed SESSION cookie from brower
  -x, --xsrftoken        borrowed XSRF-TOKEN cookie from browser
  -h, --host                  the address where SESSION and XSRF-TOKEN have been borrowed from
  -t, --timeout            keep alive timeout in seconds (default: "60")
  -k, --passkey            passkey
  --help                            display help for command


Here are some examples of how to use the mdsp dev-proxy command:


    mdsp dev-proxy  				 runs on default port (7707) using cookies
    mdsp dev-proxy --mode credentials --port 7777 --passkey $MDSP_PASSKEY 
                                        	 runs on port 7777 using app/service credentials


    	- create environment variables: MDSP_HOST, MDSP_SESSION and MDSP_XSRF_TOKEN using borrowed cookies 

    see more documentation at https://opensource.mindsphere.io/docs/mindconnect-nodejs/development-proxy.html

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