export-import
export upload
Upload the export file to the cluster from your client workstation.
Syntax
cpd-cli export-import export upload \
[--arch=<system-cpu-architecture>] \
[--cpdconfig=<cpd-configuration-location>] \
[--file=<export-import-file-name>] \
[--log-level=info|debug|warn|error|panic|trace] \
[--namespace=<namespace-name>] \
--profile=<profile-name> \
[--verbose]
Arguments
The command has no arguments.
Options
Table 1: Command options
| Option | Description |
|---|---|
--arch |
The type of hardware the cluster
runs on.
|
--cpdconfig |
The IBM Software Hub
configuration location. For example,
$HOME/.cpd-cli/config.
|
|
|
The export or import file name to
upload.
|
|
|
Display command
help.
|
--log-level |
The command log
level.
|
|
|
The namespace name in which the
utility should operate.
|
--profile |
The name of the profile that you
created to store information about an instance of IBM Software Hub and your credentials for the
instance.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Upload the export file to the
${PROJECT_CPD_INST_OPERANDS}namespace. - After the upload is successful, import the file to the target cluster with
the same namespace (the target cluster must have a
cpdtoolenvironment setup).cpd-cli export-import export upload \ --file=<export-import-file-name> \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --arch=${CPU_ARCH} \ --profile=${CPD_PROFILE_NAME}