Resolver is a CLI tool that enable developers to scaffold projects for different development purpose, tools and programming languages.
Installing resolver-cli requires that you already have Rust , and cargo installed. Use the following command to install Rust and Cargo:
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | shTo check whether you have Rust installed correctly, open a shell, and run the command below:
$ rustc --versionCheck whether cargo is installed:
$ cargo --versionNow that you have Rust and Cargo installed, run the command below to install resolver-cli:
cargo install resolver-cliWith resolver-cli you can create projects for different development tools and programming languages. Resolver-cli has three action commands get, scaffold, and install.
The get action is used to clone selected Diamond Standard Templates from GitHub which covers for Hardhat JavaScript, Hardhat TypeScript, and Foundry.
Creates a project boilerplate with Diamond Standard Hardhat JavaScript
resolver-cli get dhjs project_nameCreates a project boilerplate with Diamond Standard Hardhat TypeScript
resolver-cli get dhts project_nameCreates a project boilerplate with Diamond Standard Foundry
resolver-cli get dfd project_nameThe scaffold action is used to scaffold projects for different development tools and languages which includes:
- ReactJS
- ReactTs
- Hardhat
- NestJs
- Laravel
- NextJs
- Foundry
- Vue
- Vite
- Starknet Foundry
- RainbowKit + Wagmi + Next.js
- ReactNative Expo
- Adonis.js
Creates a React project with JavaScript
resolver-cli scaffold reactjs project_nameCreates a React project with TypeScript
resolver-cli scaffold reactts project_nameCreates a Hardhat Solidity project
resolver-cli scaffold hardhat project_nameCreates a NestJS project
resolver-cli scaffold nestjs project_nameCreates a Laravel PHP project
resolver-cli scaffold laravel project_nameCreates a NextJS project
resolver-cli scaffold nextjs project_nameCreates a new foundry project
resolver-cli scaffold foundry project_nameCreates a Vue.js project
resolver-cli scaffold vue project_nameCreates (Vanilla TypeScript, Vue, React, Preact, Lit, Svelte) project using Vite
resolver-cli scaffold vite project_nameCreates a starknet project
resolver-cli scaffold snforge project_nameCreates a rainbowKit + wagmi + next.js project
resolver-cli scaffold rainbowkit project_nameCreates a ReactNative Expo project
resolver-cli scaffold reactnativeexpo project_nameCreates an Adonis.js project
resolver-cli scaffold adonis project_nameCreates an Anchor project with Typescript tests
resolver-cli scaffold anchor-ts project_nameCreates an Anchor project with Rust tests
resolver-cli scaffold anchor-rust project_nameThe install action installs development tools like Node.js, Homebrew, Choco, Scarb, e.t.c.
-
To install node, run:
resolver-cli install node -
To install homebrew, run:
resolver-cli install brew -
To install choco, run:
resolver-cli install choco -
To install scarb, run:
resolver-cli install scarb -
To install latest version of starknet foundry, run:
resolver-cli install snfoundry latest -
To install a specific version of starknet foundry, run:
resolver-cli install snfoundry $versionName -
To install solana-cli, run:
resolver-cli install solana -
To install anchor, run:
resolver-cli install anchor
Run resolver-cli install --help to see all supported installation tools.