Skip to content

Getting Started

This page gives you the shortest useful path into Targo.

1. Create a project

bash
npx @targo/create-targo my-app
cd my-app

2. Refresh project state

bash
targo init

Think of targo init as "refresh project declarations and Targo-managed state", not just a one-time bootstrap command.

3. Write a tiny entrypoint

typescript
import { Println } from "fmt";

export function main(): void {
  Println("Hello, Targo!");
}

4. Check and build

bash
targo check
targo build

If you just want to verify the run path:

bash
targo run