Getting Started

Quick Start

Go from zero to solving your first lab in under 5 minutes.

No account needed to start
You can run your first lab without signing in. An account lets you track progress across machines and unlock the leaderboard.

Install the CLI

bash
$ npm install -g @tld/cli

Sign in (optional)

bash
$ tld login
# Opening browser for authentication...
# Logged in as shreyansh@thelastdeploy.com

Start a lab

Pick any lab from the available tracks. For your first time, we recommend starting with Docker fundamentals.

bash
# List available labs
$ tld lab list
 
# Start a specific lab
$ tld lab start docker-fundamentals
 
# You'll see something like:
# Pulling lab environment...
# Starting containers...
# Lab ready. Read the scenario in your terminal.
# Run `tld check` when you think you've fixed it.

Solve it

Read the scenario carefully. Use the tools available in your terminal — docker, bash, curl, whatever the lab requires. The README for each lab is inside the lab directory.

bash
# Read the lab README
$ cat ~/.tld/labs/current/README.md
 
# Investigate the problem
$ docker ps -a
$ docker logs <container-id>
 
# Apply your fix
# (this will be different for every lab)

Validate

bash
$ tld check
 
# Results:
# ✓ Container is running
# ✓ Port 80 is accessible
# ✓ Nginx returns HTTP 200
# ✗ Response body does not match expected
#
# 3/4 checks passed. Fix the remaining issue and run `tld check` again.
Partial results are normal
Validators report each check individually. Fix the failing checks one by one and re-run `tld check` as many times as you need.