download-file
Automatically generated README for this automation recipe: download-file
Category: DevOps automation
License: Apache 2.0
- 
Notes from the authors, contributors and users: README-extra 
- 
CM meta description for this script: _cm.json 
- Output cached? False
Reuse this script in your project
Install MLCommons CM automation meta-framework
Pull CM repository with this automation recipe (CM script)
cm pull repo mlcommons@cm4mlops
Print CM help from the command line
cmr "download file" --help
Run this script
Run this script via CLI
cm run script --tags=download,file[,variations] [--input_flags]
Run this script via CLI (alternative)
cmr "download file [variations]" [--input_flags]
Run this script from Python
import cmind
r = cmind.access({'action':'run'
              'automation':'script',
              'tags':'download,file'
              'out':'con',
              ...
              (other input keys for this script)
              ...
             })
if r['return']>0:
    print (r['error'])
Run this script via Docker (beta)
cm docker script "download file[variations]" [--input_flags]
Variations
- 
No group (any combination of variations can be selected) Click here to expand this section.- _url.#- ENV variables:- CM_DOWNLOAD_URL: #
 
- CM_DOWNLOAD_URL: 
 
- ENV variables:
 
- 
Group "download-tool" Click here to expand this section.- _cmutil(default)- ENV variables:- CM_DOWNLOAD_TOOL: cmutil
 
- CM_DOWNLOAD_TOOL: 
 
- ENV variables:
- _curl- ENV variables:- CM_DOWNLOAD_TOOL: curl
 
- CM_DOWNLOAD_TOOL: 
 
- ENV variables:
- _gdown- ENV variables:- CM_DOWNLOAD_TOOL: gdown
 
- CM_DOWNLOAD_TOOL: 
 
- ENV variables:
- _rclone- ENV variables:- CM_DOWNLOAD_TOOL: rclone
 
- CM_DOWNLOAD_TOOL: 
 
- ENV variables:
- _wget- ENV variables:- CM_DOWNLOAD_TOOL: wget
 
- CM_DOWNLOAD_TOOL: 
 
- ENV variables:
 
Default variations
_cmutil
Script flags mapped to environment
- --download_path=value→- CM_DOWNLOAD_PATH=value
- --from=value→- CM_DOWNLOAD_LOCAL_FILE_PATH=value
- --local_path=value→- CM_DOWNLOAD_LOCAL_FILE_PATH=value
- --md5sum=value→- CM_DOWNLOAD_CHECKSUM=value
- --output_file=value→- CM_DOWNLOAD_FILENAME=value
- --store=value→- CM_DOWNLOAD_PATH=value
- --url=value→- CM_DOWNLOAD_URL=value
- --verify=value→- CM_VERIFY_SSL=value
- --verify_ssl=value→- CM_VERIFY_SSL=value
Default environment
These keys can be updated via --env.KEY=VALUE or env dictionary in @input.json or using script flags.
- CM_RCLONE_COPY_USING: sync
Native script being run
Script output
cmr "download file [variations]" [--input_flags] -j