This requires an account on Latch. Register for a free account and log into the Latch Console

1. Install Latch:

Run this in your terminal to install the Latch CLI and all of its dependancies:
Terminal
python3 -m pip install latch
We recommend installing Latch SDK in a fresh environment for best behavior.

For Linux/ MacOS

You can use venv to a create an fresh enviroment to install the Latch SDK.
python3 -m venv env
source env/bin/activate

For Windows

The Latch SDK is a Python package, so we recommend installing Latch SDK in a fresh environment for best behavior. To do so, you can use venv.
  1. First, install the WSL command:
wsl --install
This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux.
  1. Activate the Linux shell:
wsl
Now, you are in a Linux environment and can create a virtual environment like so:
python3 -m venv env
source env/bin/activate

3. Authenticate with Latch

Run this to authenticate your Latch CLI locally. This will open up a new browser window and authenticate the CLI using your account’s API key.
Terminal
latch login

4. Create your first workflow from a template

This will download the subprocess workflow template using the Latch SDK framework to a directory called covid-wf.
Terminal
latch init covid-wf --template subprocess 

5. Register your workflow

This will upload your workflow to your account here on Latch where you can then view the parameters and run it.
Terminal
latch register --yes --open covid-wf 
To launch the workflow, use the Test Data button at the top of the parameters and click Launch.
  1. Congratulations! You successfully uploaded your first workflow to Latch

Next steps are: