Use a REST API to download the CLI as an archive from the Oracle Cloud.
Obtain your cloud account information:
User name and password
Identity domain ID
Note:
If your account administrator has changed the identity domain name, you must still specify the identity domain ID when using the REST API. For example, if the original identity domain name was MyIdentityDomain54321 and it was changed to MyIdentityDomain, you must use MyIdentityDomain54321 in the REST endpoints.
Identify your REST API server name:
If you log in to your Oracle cloud account with a US data center, use psm.us.oraclecloud.com
If you log in to your Oracle cloud account with the aucom region, use psm.aucom.oraclecloud.com
Otherwise, use psm.europe.oraclecloud.com
Use cURL to send a request to the URL https://<rest-server>/paas/api/v1.1/cli/<identitydomain>/client. Write the response to a file named psmcli.zip. Provide the following information:
Your REST API server name
Your Oracle cloud user name and password
Your identity domain ID (as the HTTP header X-ID-TENANT-NAME and as part of the URL)
For example:
curl -X GET -u myuser321:password -H X-ID-TENANT-NAME:MyIdentityDomain54321 https://psm.us.oraclecloud.com/paas/api/v1.1/cli/MyIdentityDomain54321/client -o psmcli.zip