FAQ
Do I need Foundry installed before using KRNL CLI?
No. The CLI automatically checks for Foundry (forge, cast, anvil) during project initialization. If Foundry is missing or the version is below 1.0.0, it will install or update it automatically.
How does KRNL CLI detect project structure?
Source contracts: Auto-detects
src/
orcontracts/
Output artifacts: Auto-detects
out/
orartifacts/
Configuration: Reads
foundry.toml
if present
You can override these paths using the -c
, -o
, and -p
flags with krnl compile
.
How does deployment network detection work?
KRNL CLI prioritizes networks in this order:
Network specified via
--network
flagRPC URLs defined in
.env
(e.g.,SEPOLIA_RPC_URL
)[rpc_endpoints]
section infoundry.toml
Defaults to
localhost:8545
What is an attestor, and why do I need one?
Attestor is a component which will attest and also resolve the secrets in your DSL workflow. You create one using:
krnl create-attestor
What happens if my PRIVATE_KEY is missing the 0x prefix?
KRNL CLI automatically detects this and adds 0x
if needed during deployment.
Where are the compiled artifacts stored?
By default:
Foundry outputs:
out/
orartifacts/
Can be overridden with the
-o
flag inkrnl compile
Last updated