create-inco-app CLI allows you to create a new full-stack confidential dApp with a Next.js frontend, Anchor programs (Rust), and the Inco Solana SDK. It is the easiest way to get started building on Inco for Solana.
Basic usage
create-inco-app will create a folder with your project name and install the required dependencies.
Reference
| Option | Description |
|---|---|
-h or --help | Show all available options |
-v or --version | Output the version number |
-f or --framework <value> | Contract framework (anchor) |
-w or --wallet <value> | Wallet provider (solana-wallet-adapter, privy) |
-c or --chain <value> | Chain type (svm) |
-y or --yes | Skip prompts, use defaults |
--install | Auto-install dependencies after scaffolding |
--git | Initialize a git repository |
--use-npm | Explicitly tell the CLI to bootstrap using npm |
--use-pnpm | Explicitly tell the CLI to bootstrap using pnpm |
--use-yarn | Explicitly tell the CLI to bootstrap using Yarn |
--use-bun | Explicitly tell the CLI to bootstrap using Bun |
Project Structure
The scaffolded project is a monorepo with two workspaces:The frontend is pre-configured for Solana devnet. All wallet providers connect to devnet by default, no network configuration changes are needed.
Examples
With default options
With Anchor and Solana Wallet Adapter
With Anchor and Privy
Build & Test Programs
Run the test command from the project root — it builds, deploys to a local validator, runs tests, and automatically syncs the program IDs and IDLs to the frontend:.env is automatically updated with the deployed program IDs.
Then run the frontend:
For Privy, you need a Privy App ID with Solana (SVM) enabled. Set
NEXT_PUBLIC_PRIVY_APP_ID in frontend/.env.local before running the frontend. For Solana Wallet Adapter, no additional configuration is needed — it works out of the box.Inco Solana SDK Integration
The scaffolded app uses@inco/solana-sdk for client-side encryption. On-chain, the Anchor programs use inco-lightning CPI for encrypted operations.
Client-side encryption
On-chain encrypted operations (Rust)
Choose Your Wallet Provider
Each wallet provider has its own setup. Select one to see the provider configuration:Solana Wallet Adapter
Native Solana wallets (Phantom, Solflare)
Privy
Embedded wallets & social login
Quick Reference
| Command | Description |
|---|---|
npm run programs:test | Build, test, and sync programs to frontend |
npm run programs:build | Build Anchor programs only |
npm run programs:sync | Sync IDLs and program IDs to frontend |
npm run dev | Start frontend |