Quick Start (CLI)
Last updated
Was this helpful?
Last updated
Was this helpful?
At the moment, the KRNL CLI is built using a Foundry project as a template.
macOS
Sequoia (15+)
Linux
Ubuntu 24.04.1, Debian (X)
Windows
WSL2
(node ≥ 18)
The KRNL CLI is an application that unifies the setup, deployment, verification, and registration of smart contracts on the KRNL platform into one place.
Note: Make sure to restart the terminal after the installation to avoid "forge not found error"
This initializes a sample project, containing everything you need to get started with kOS.
When running the setup command, the CLI will ask you for the following information:
Etherscan API Key - Used to verify your deployed smart contracts
Sepolia RPC URL - Can be configured to point to a local node, otherwise it will default to: https://1rpc.io/sepolia
Oasis Sapphire Wallet Private Key - Used for deploying your Token Authority contract
Ethereum (Sepolia) Wallet Private Key - Used for deploying your Smart Contract
This command will execute several functions:
Deploy Token Authority smart contract on Oasis Sapphire network
Verify Token Authority contract on Sourcify
Deploy your main smart contract on Sepolia testnet
Verify your main smart contract on Etherscan, using your Etherscan API Key
Register your deployed smart contracts on the KRNL Registry
After successfully executing this command, the CLI puts you in a stronger position to add new functionalities to your dApp via kOS.
Kernel ID(s) - Choose your desired functionalities from the .
Create a dApp by following our or by using the .
Explore different kernel examples .