MindSphere CLI: mdsp upload-file Command


mdsp upload-file


mdsp upload-file --help

Alternative form:

mc upload-file

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


upload the file to the MindSphere file service (optional: passkey) *


Parameter list:

Usage: mc upload-file|uf [options]

upload the file to the MindSphere file service (optional: passkey) *

  -c, --config   config file with agent configuration
  -r, --cert [privatekey]     required for agents with RSA_3072 profile. create with: openssl genrsa -out private.key 3072
  -f, --file    file to upload to the file service
  -h, --filepath    file path in the MindSphere
  -l, --parallel      parallel chunk uploads (default: "3")
  -i, --assetid [assetid]     MindSphere asset id  (default: upload to the agent)
  -m, --mime [mime-type]      mime type of the file (default: automatic recognition)
  -d, --desc [description]    description
  -k, --chunked               Use chunked upload
  -y, --retry         retry attempts before giving up (default: "3")
  -p, --passkey      passkey (optional, file upload uses service credentials *)
  -v, --verbose               verbose output
  --help                      display help for command


Here are some examples of how to use the mdsp upload-file command:


    mdsp uf -f CHANGELOG.md   							 upload file CHANGELOG.md to the agent
    mdsp upload-file --file  CHANGELOG.md  --assetid 5...f --mime text/plain 	 upload file to a specified asset with custom mime type
    mdsp upload-file --file  CHANGELOG.md  --chunked 				 upload file using experimental chunked upload

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