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 upload-file Command¶

Syntax:

mdsp upload-file

Help:

mdsp upload-file --help

Alternative form:

mc upload-file

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

Description¶

upload the file to the Insights Hub file service (optional: passkey) *

Usage¶

Parameter list:

Usage: mdsp upload-file|uf [options]

upload the file to the Insights Hub file service (optional: passkey) *

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

Examples¶

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

 Examples:

 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 Insights Hub API documentation for more information about Insights Hub APIs.