Skip to content

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 Insights Hub file service (optional: passkey) *


Parameter list:

Usage: mdsp upload-file|uf [options]

upload the file to the Insights Hub 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 Insights Hub
 -l, --parallel parallel chunk uploads (default: "3")
 -i, --assetid [assetid] Insights Hub 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 upload file to the agent
 mdsp upload-file --file --assetid 5...f --mime text/plain upload file to a specified asset with custom mime type
 mdsp upload-file --file --chunked upload file using experimental chunked upload

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


Connect and Collaborate with Industrial Professionals and Join the Community!

Click to load comments