reliverse
v0.2.0
Published
A powerful CLI that allows you to bootstrap web templates in seconds with various options.
Downloads
17
Maintainers
Readme
Reliverse CLI
Reliverse CLI is a powerful command-line tool that allows you to bootstrap web templates in seconds. It provides a seamless way to kickstart your projects with various options and configurations.
Installation
To install Reliverse CLI, follow these steps:
Make sure you have Node.js installed on your system.
Run the following command to install Reliverse CLI globally:
bun add -g reliverse pnpm add -g reliverse npm install -g reliverse yarn global add reliverse
Once the installation is complete, you can start using Reliverse CLI.
If global installation fails, try using bunx reliverse
or pnpx reliverse
.
Usage
To create a new project using Reliverse CLI, follow these steps:
Open your terminal and navigate to the directory where you want to create your project.
Run the following command:
reliverse init <!-- or --> bunx reliverse init pnpx reliverse init yarn reliverse init
Follow the interactive prompts to configure your project options.
Once the configuration is complete, Reliverse CLI will bootstrap your project with the selected options.
Adding New Options to Reliverse CLI
If you want to contribute a new option to Reliverse CLI, follow these steps:
- Add the option to the
CliFlags
andCliResults
interfaces insrc/cli/index.ts
. - Update the
defaultOptions.flags
anddefaultOptions
const insrc/cli/index.ts
with the new option. - Add prompts for the new option in the
runCli
function (findreturn p.confirm
) to ask the user if they want to include the option. - Add the option to the
const availablePackages
andconst buildPkgInstallerMap
insrc/installers/index.ts
. - Create a new installer file for the option in
src/installers/optionNameInstaller.ts
. - Place the necessary files to be copied in
template/extras/*
. - List the library in
const dependencyVersionMap
insrc/installers/dependencyVersionMap.ts
. - Find
if (project.
and add your option correspondingly. - In the return statement, add the option in the format:
optionName: project.optionName as "none" | "option1" | "option2"
. - If needed, find the relevant section (e.g., "Install the selected i18n package") and add your option accordingly.
- Update
const selectLayoutFile
andconst selectPageFile
insrc/installers/index.ts
if required. - Add final log notes in
logNextSteps.ts
file for your option. - Update the required environment variables in
envVars.ts
file if necessary. - Update the scripts in
base/package.json
if needed.
Contributing
We welcome contributions to Reliverse CLI! If you have any ideas, suggestions, or bug reports, please open an issue on the GitHub repository. If you'd like to contribute code, please fork the repository and submit a pull request.
License
Reliverse CLI is open-source software licensed under the MIT license.