docs / guide / The Cajeta Guide

Chapters — 2. Kick the tires
  1. Introduction
  2. 0. Introduction
  3. 1. Installation
  4. 2. Kick the tires
  5. 3. Your first project
  6. 4. Running your application
  7. 5. Debugging
  8. 6. Keywords
  9. 7. Comments
  10. 8. Native types
  11. 9. Type kinds
  12. 10. Allocation
  13. 11. Ownership & borrowing
  14. 12. Control flow
  15. 13. Strings & formatting
  16. 14. Templates & wildcards
  17. 15. Lambdas & captures
  18. 16. Operator overloading
  19. 17. Inheritance
  20. 18. Annotations & synthesis
  21. 19. DI & aspects
  22. 20. Error handling
  23. 21. Reflection
  24. 22. Differentiation
  25. 23. Code coverage
  26. 23. Profiling
  27. 24. Notebooks
  28. 25. Writing XPU Kernels

02 — Kick the tires

Four steps to prove the install works: check the version, scaffold hello world, compile it to an executable, run it.

1. Check the install

$ cajeta --version
cajeta 0.8.0 (8190ee59)

A version string means the toolchain is on your PATH and healthy.

2. Create hello world

$ cajeta init basic hello
Initialized 'basic' archetype in hello:
  cajeta.json
  src/main/cajeta/com/example/basic/Main.cajeta
$ cd hello

3. Compile to an executable

$ cajeta build
Task 'build' outputs:
  path = build/exe/com.example.basic
  sha256 = sha256:...

The output is a native binary.

4. Run it

$ ./build/exe/com.example.basic
hello from com.example.basic

That’s the whole loop: init → build → run. Everything else — what the manifest means, the other project types, the rest of the cajeta command — comes next.

Next: Your first project.

Source: docs/guide/02-kick-the-tires.md · 1 min · 97 words