@rhythm-ui/cli - A command-line interface tool for bootstrapping Vite and Next.js projects with Rhythm UI framework.
Before running @rhythm-ui/cli, you need to add the following configuration to your .npmrc file located in your home directory:
@rhythm-ui:registry=https://gitlab.com/api/v4/projects/{project_id}/packages/npm/ //gitlab.com/api/v4/projects/{project_id}/packages/npm/:_authToken={auth_token}
Replace {project_id} with the ID of your GitLab project and {auth_token} with your authentication token. If you don't have these values, please contact your project administrator.
To modify or create the .npmrc file, follow the instructions based on your operating system:
Open a command prompt.
Run the following command to navigate to your home directory:
cd %USERPROFILE%
if exist .npmrc ( echo .npmrc file exists ) else ( echo .npmrc file does not exist )
echo @rhythm-ui:registry=https://gitlab.com/api/v4/projects/{project_id}/packages/npm/ >> .npmrc echo //gitlab.com/api/v4/projects/{project_id}/packages/npm/:_authToken={auth_token} >> .npmrc
echo @rhythm-ui:registry=https://gitlab.com/api/v4/projects/{project_id}/packages/npm/ > .npmrc echo //gitlab.com/api/v4/projects/{project_id}/packages/npm/:_authToken={auth_token} >> .npmrc
Open a terminal.
Run the following command to navigate to your home directory:
cd ~
if [ -f .npmrc ]; then echo .npmrc file exists else echo .npmrc file does not exist fi
echo @rhythm-ui:registry=https://gitlab.com/api/v4/projects/{project_id}/packages/npm/ >> .npmrc echo //gitlab.com/api/v4/projects/{project_id}/packages/npm/:_authToken={auth_token} >> .npmrc
echo @rhythm-ui:registry=https://gitlab.com/api/v4/projects/{project_id}/packages/npm/ > .npmrc echo //gitlab.com/api/v4/projects/{project_id}/packages/npm/:_authToken={auth_token} >> .npmrc
After setting up the npmrc file, you can run the following command to start the CLI:
npx @rhythm-ui/cli
The CLI will prompt you with questions, and once you've answered them, it will generate a new project with all the necessary setup.