CLI

CLI Overview

The tld command-line interface — installation, global options, and commands.

About the CLI

The TLD CLI (called tld) is the primary interface to the platform. It's a single static binary written in Go — no runtime required. You use it to authenticate, manage labs, validate solutions, and configure your environment.

bash
$ tld --help
 
$ Usage:
tld [command]
 
$ Available Commands:
login Authenticate with The Last Deploy
logout Sign out
lab Manage labs (start, stop, list, check)
check Validate your current lab solution
doctor Diagnose your environment
update Update the CLI to the latest version
version Show version information
config Manage CLI configuration
 
$ Flags:
-h, --help Show help
-v, --verbose Enable verbose output
--no-color Disable colored output
--json Output as JSON (for scripting)

Global flags

FlagDescription
--help, -hShow help for any command
--verbose, -vEnable verbose output including debug information
--no-colorDisable ANSI color codes (useful in CI environments)
--jsonOutput results as JSON for scripting
--profile <name>Use a named config profile

Commands

CommandDescription
tld loginAuthenticate with your TLD account
tld logoutSign out and clear local credentials
tld lab listList available labs
tld lab start <id>Start a lab environment
tld lab stopStop the current lab
tld checkValidate your current lab solution
tld doctorDiagnose your environment
tld updateUpdate the CLI
tld versionShow version info
tld config get/setRead or write config values