1.1X Rescale CLI FAQ
Rescale CLI defaults to the US platform platform.rescale.com. If you are a user on any of the other global platforms (EU, JP, KR, ITAR), please specify your regional platform using the -X flag in your CLI command. For example:
PLATFORM | CLI COMMAND |
EU | rescale-cli -X https://eu.rescale.com submit -p <api-token> -i <input-script> |
Japan | rescale-cli -X https://platform.rescale.jp submit -p <api-token> -i <input-script> |
Korea | rescale-cli -X https://kr.rescale.com submit -p <api-token> -i <input-script> |
ITAR | rescale-cli -X https://itar.rescale.com submit -p <api-token> -i <input-script> |
During the uploading, after each file is successfully uploaded there will be a standard output indicating so. So the user can also redirect the output into a log file so all the successful uploads will be recorded.
rescale-cli upload -p <api-token> -f <file1> ... <fileN> > upload.log
By default, the upload command will return a limited set of metadata for the uploaded file. To see an extended set of metadata, use the -e
flag in the upload call:
rescale-cli upload -p <api-token> -f <file1> ... <fileN> -e
Finally, if the CLI is being embedded in a larger script, then it is useful to use the --quiet
flag to suppress non-json output from the command. This makes the parsing the response easier:
rescale-cli --quiet upload -p <api-token> -f <file1> ... <fileN> -e
There are a few advanced Java system properties that can be specified:
rescale.loglevel (TRACE, DEBUG, INFO, WARNING, ERROR, OFF)https.proxyHosthttps.proxyPorthttps.proxyUserhttps.proxyPassword
By default all arguments are passed directly to the CLI, but you can submit arguments intended for the JVM by prefixing them with -J
.
These arguments would be -D
(define) flags to Java, so with the rescale-cli
wrapper they are passed with -J-D
.
For example, to run with DEBUG
logging turned on and use proxy.com:8888
as a proxy serverA server is a computer system or software program that provi... More, the following command can be used:
rescale-cli -J-Drescale.loglevel=DEBUG -J-Dhttps.proxyHost=proxy.com -J-Dhttps.proxyPort=8888 status -p <api-token> -j <job-id>
Note: There is no spacing between the -J-D
and the name of the system property.
If the proxy requires Windows authentication, the https.proxyUser
and https.proxyPassword
system properties can be set. The https.proxyUser
value should be set to DOMAIN\username
. The https.proxyPassword
property can be set to the Windows password for the user. If you do not want to embed the password in the command line, this property can be omitted and the CLI will prompt you to enter your password in the console when it launches.
In order for the Rescale CLI to work properly, your device needs to have access to the following URLs:
PLATFORM | URL |
All | *.rescale.com |
US | platform.rescale.com |
EU | eu.rescale.com |
Japan | platform.rescale.jp |
Korea | kr.rescale.com |
ITAR | itar.rescale.com |
And additionally, the following CSP-specific URLs:
URL |
*.s3.amazonaws.com |
*.s3.us-east-2.amazonaws.com |
*.s3.us-east-1.amazonaws.com |
*.s3.us-west-1.amazonaws.com |
*.s3.us-west-2.amazonaws.com |
*.s3.af-south-1.amazonaws.com |
*.s3.ap-east-1.amazonaws.com |
*.s3.ap-south-2.amazonaws.com |
*.s3.ap-southeast-3.amazonaws.com |
*.s3.ap-southeast-4.amazonaws.com |
*.s3.ap-south-1.amazonaws.com |
*.s3.ap-northeast-3.amazonaws.com |
*.s3.ap-northeast-2.amazonaws.com |
*.s3.ap-southeast-1.amazonaws.com |
*.s3.ap-southeast-2.amazonaws.com |
*.s3.ap-northeast-1.amazonaws.com |
*.s3.ca-central-1.amazonaws.com |
*.s3.eu-central-1.amazonaws.com |
*.s3.eu-west-1.amazonaws.com |
*.s3.eu-west-2.amazonaws.com |
*.s3.eu-south-1.amazonaws.com |
*.s3.eu-west-3.amazonaws.com |
*.s3.eu-south-2.amazonaws.com |
*.s3.eu-north-1.amazonaws.com |
*.s3.eu-central-2.amazonaws.com |
*.s3.me-south-1.amazonaws.com |
*.s3.me-central-1.amazonaws.com |
*.s3.sa-east-1.amazonaws.com |
*.s3-fips.us-east-1.amazonaws.com |
*.s3-fips.us-east-2.amazonaws.com |
*.s3-fips.us-west-1.amazonaws.com |
*.s3-fips.us-west-2.amazonaws.com |
*.s3-fips.us-gov-east-1.amazonaws.com |
*.s3-fips.us-gov-west-1.amazonaws.com |
*.s3-fips.ca-central-1.amazonaws.com |
*.storage.azure.com |
*.storage.azure.net |
*.blob.core.windows.net |
storage.googleapis.com |