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.