kairo.toml from the current working directory unless a path is provided.
Global flags
forge restore
Resolve dependencies and write forge.lock.
Usage
Behavior
- Parse
kairo.toml. - Resolve every dependency to a concrete version.
- Fetch package metadata from configured registries.
- Write
forge.lock.
forge check
Parse, resolve names, and type-check without producing artifacts.
Usage
- Reads the manifest and lock file.
- Runs Forge’s semantic front-end.
- Emits diagnostics for every problem found.
- Does not write artifacts.
forge build
Compile the package to an artifact.
Usage
Behavior
- Requires a valid
forge.lock. - Runs
checkimplicitly. - Emits build artifacts under the package’s build output folder.
forge test
Run tests declared under tests/.
Usage
Behavior
- Builds the test target.
- Executes each test.
- Emits a summary of pass/fail counts and diagnostic detail on failure.
forge package
Produce a distributable library artifact.
Usage
- Requires
kind = "library"inkairo.toml. - Builds the library and produces a distributable artifact suitable for
forge publish.
forge publish
Publish a package to its configured registry.
Usage
- Reads
[publish].registryfromkairo.toml. - Publishes the package to the target registry.
- Registry authentication and protocol details are managed by external Forge configuration.
forge clean
Remove build outputs.
Usage
- Deletes generated build outputs and intermediate files.
- Does not delete
forge.lockorkairo.toml.
Exit codes
Diagnostic codes
Forge emits structured diagnostics with a stable code, a source location, and a message. Codes are prefixed by the phase that produced them:
See the Command Catalog for the code assigned to each construct.
Related
Forge overview
Where Forge fits in the toolchain.
Pulse Runtime reference
Running the artifacts Forge produces.
