This topic describes how to download, install and get acquainted with the Dis.co command-line interface (CLI). A full description of the Dis.co commands is provided in the CLI Reference. If you have not yet set up an account, please read the Quick Start Guide.
Install the Dis.co CLI from your terminal. Dis.co supports Python version 3.6 or higher.
$ pip install disco
disco login --user YOUR_EMAIL --password YOUR_PASSWORD
After successful login, you can add and run a new job.
disco job create --name YOUR_JOB_NAME --script YOUR_SCRIPT_FILE_PATH --run
Now you will see the job status as it is submitted and starts running.
To follow the job's status, run the
disco job view <job_id>
When the job is done you can download its results.
disco job download-results <job id> --destination YOUR_RESULTS_DESTINATION_PATH
Create job with multiple input files using wildcards:
disco job create -n jobName -s ~/jobs/primes/prime_finder.py -i "~/jobs/primes/Data/*"
disco job create -n jobName -s ~/jobs/primes/prime_finder.py -i "~/jobs/primes/Data/Range*.txt"