Install the pinned release#
The site pins one immutable published Yak release. Install that exact tag, then authenticate your CLI:
curl -fsSL \\
https://github.com/yak-computer/yak-releases/releases/download/v0.1.19/install.sh \\
| sh
yak --version
yak init
yak init opens the supported authentication flow in your browser. Finish it with an account that has Preview access before continuing.
Create and select a workspace#
After authentication, create a workspace and select it as your CLI default. Use the same name in both commands:
yak workspace create --name quickstart
yak workspace use --name quickstart
Workspace creation uses the development environment by default, which is also the environment used by the quickstart below. If you already created a workspace in the UI, skip the create command and select that workspace by its exact name with yak workspace use --name <workspace_name>.
Run the first Task#
Save the example below as hello_task.py, then run it from the same directory:
yak run hello_task.py
The stable application result is square(21) = 441. The CLI may also report submission or log information; those transient messages are not part of this example’s expected output.
What ran#
Appgroups the Task declarations and the entrypoint in one Python module.@app.task()declaressquareas a remote Task while keeping its Python callable available locally.@app.entrypoint()givesyak runthe program boundary. Its async call waits for the Task result.- Yak accepts and executes one Invocation on remote Linux compute; the entrypoint prints exactly
square(21) = 441.
Continue with Task execution , the CLI reference and the generated Python SDK reference .