A CLI tool to bootstrap Solana projects with customizable package selection.
- Node.js >= 20
- Yarn >= 1.22 (If not installed, run
npm install -g yarn
) - npm >= 9.6.1 (If not installed, run
sudo apt-get install npm
) - Typescript >= 5.5.3 (If not installed, run
npm install -g typescript
) - ts-node >= 10.9.2 (If not installed, run
npm install -g ts-node
)
-
Clone the repository:
git clone https://github.com/moonboylabsxyz/create-solana-app cd create-solana-app
-
Install dependencies:
yarn install
-
Build the project:
yarn build
-
Link the package globally:
yarn link
And
sudo npm install -g .
or
npm install -g .
Once installed or linked, you can use the CLI tool:
create-solana-app
Follow the prompts to:
- Enter your project name
- Select the packages you want to install
The CLI will create a new directory with your project name, initialize a new Solana project, and install the selected packages.
After making changes to the source code:
-
Rebuild the project:
yarn build
-
If you've made changes that affect the global command, relink the package:
yarn unlink yarn link
This is still in active development, contributions are welcome! Please feel free to submit a PR.