ml model upload-content
Upload content for a specific model.
Syntax
cpd-cli ml model upload-content \
[--body=<upload-file-content>] \
--content-format=<content-format> \
[--content-type=<content-type>] \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
[--cpd-scope=<cpd-scope>] \
[--deployment-id=<deployment-id>] \
[--jmes-query=<jmespath-query>] \
--model-id=<model-identifier> \
[--name=<attachment-name>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
[--pipeline-node-id=<pipeline-node-identifier>] \
--profile=<cpd-profile-name> \
[--project-id=<project-id>] \
[--quiet] \
[--raw-output=true|false] \
[--space-id=<space-identifier>] \
[--upload-content=<model-file-content>] \
[--verbose]
Arguments
The ml model upload-content command
has no arguments.
Options
Table 1: Command options
| Option | Description |
|---|---|
--body |
Specify the content of the
file to upload.
|
--content-format |
Specify the content
format.
|
--content-type |
Specify the input type. A
character encoding can be specified by including a 'charset' parameter. For example,
'text/plain;charset=utf-8'.
|
--context |
Specify the configuration context
name.
|
--cpd-config |
The IBM Software Hub
configuration location. For example,
$HOME/.cpd-cli/config.
|
--cpd-scope |
The IBM Software Hub space,
project, or catalog scope. For example,
cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135.
|
--deployment-id |
Specify
a 'deployment_id' to use. Only resources that match the specified 'deployment_id' are returned. The
setting is relevant only when the 'content_format' option value is
'coreml'.
|
|
|
Display command
help.
|
--jmes-query |
Provide a JMESPath query to
customize the output.
|
--model-id |
Specify the model
identifier.
|
--name |
Specify the attachment
name.
|
--output |
Specify an output
format.
|
--output-file |
Specify a file path where all
output is redirected.
|
--pipeline-node-id |
Specify a pipeline node
identifier. Only resources that match the specified identifier are returned. The setting is relevant
only when the 'content_format' option value is
'pipeline-node'.
|
--profile |
The name of the profile that you
created to store information about an instance of Cloud Pak for Data and your credentials for the
instance.
|
--project-id |
Specify an IBM
Software Hub project instance that contains the resource.
|
--quiet |
Suppress verbose
messages.
|
--raw-output |
When set to true, single values
are not surrounded by quotation marks in
JSON output
mode.
|
--space-id |
Specify a space
identifier.
|
--upload-content |
Specify the model file content to
upload.
|
--verbose |
Logs include more detailed
messages.
|