Command Line Interface Reference
POSIX-standard commands, automated test verification, native compiler toolchain detection, and deterministic local workspace generation.
trak init
Core CommandWorkspace Scaffolding & Materialization
Fetches official or community blueprints from the registry and deterministically materializes the full curriculum directory tree and exercises on local disk.
[<author>/]optionalOptional GitHub username for community tracks (e.g. 'alice/db/postgres'). Omit for official tracks.
<category>One of the 5 pillars: lang, os, cloud, db, or tool.
<tool>Target tool slug (e.g. go, rust, postgres, docker, aws, linux).
[@<version>]optionalOptional tagged release (e.g. @v1.1.0, @v2.0.0). Defaults to latest.
[--path <dir>]optionalCustom output directory. Defaults to './learn-<tool>'.
Flags & Options
| Flag | Type | Default | Description |
|---|---|---|---|
| -p, --path <string> | string | ./learn-<tool> | Destination folder on your local disk where files will be created. |
| -h, --help | boolean | false | Display command synopsis, available arguments, and usage tips. |
Practical Examples
Generates the official Go curriculum inside ./learn-go in the current folder.
Fetches community blueprint from users/alice/db/postgres.json in the registry.
Pulls stable tagged release postgres@v1.1.0.json, preventing breaking changes.
Materializes the Rust workspace into the custom directory ./my-rust-lab.
Execution Lifecycle (Under the Hood)
Global Flags & Design Guarantees
The following standard flags and behaviors apply uniformly across all Trak subcommands:
Prints contextual synopsis, available flags, and real-world examples for any command.
Executes native test suites across 7 languages and automatically syncs progress in trak.json.
Returns 0 on success and non-zero on test, validation, or network failures.