MindSphere CLI: mdsp dev-proxy Command

Syntax:

mdsp dev-proxy

Help:

mdsp dev-proxy --help

Alternative form:

mc dev-proxy

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

Description

starts mindsphere development proxy & (optional passkey) *

Usage

Parameter list:

Usage: mc dev-proxy|px [options]

starts mindsphere development proxy & (optional passkey) *

Options:
  -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

Examples

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


  Examples:

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

  Configuration:

    	- 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.

Further Information

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