Command line interface for Ifá-Lang
Execute an Ifá program file.
ifa run hello.ifa
ifa run examples/crypto.ifa --verbose
| Option | Description |
|---|---|
--verbose, -v |
Show detailed execution info |
--sandbox |
Run in sandboxed environment |
-- <args> |
Pass arguments to the program |
Start interactive REPL (Read-Eval-Print Loop).
ifa repl
>>> ayanmo x = 42;
>>> Irosu.fo(x * 2);
84
Type-check and lint a file without running it.
ifa check myprogram.ifa
Run the Babalawo linter with proverb-based error messages.
ifa babalawo myprogram.ifa --strict
Compile to bytecode.
ifa compile main.ifa -o main.ifab
Format source code.
ifa fmt src/*.ifa --check # Check without modifying
ifa fmt src/*.ifa # Format in place
Create a new Ifá project.
ifa new my-project
cd my-project
ifa run src/main.ifa
Run tests in the current project.
ifa test
ifa test --filter crypto
Show version information.
ifa --version
# Ifá-Lang v1.2.2
Show all available commands and options.
| Variable | Description |
|---|---|
IFA_DEBUG |
Enable debug output (1 = on) |
IFA_SANDBOX |
Force sandbox mode (1 = on) |
IFA_COLOR |
Force color output (auto, always, never) |