Installation
Get Relizy up and running in your project in seconds.
Prerequisites
- Node.js 20.x or higher
- npm, pnpm, bun or yarn package manager
- Git initialized in your project
Install Relizy
Install Relizy as a development dependency:
npm install -D relizypnpm add -D relizyyarn add -D relizybun add -D relizyGlobal Installation (Optional)
You can also install Relizy globally to use it across multiple projects:
npm install -g relizypnpm add -g relizyyarn global add relizyTIP
For most projects, we recommend installing as a dev dependency rather than globally. This ensures everyone on your team uses the same version.
Verify Installation
Check that Relizy is installed correctly:
relizy --versionYou should see the version number printed in the console.
Add to Package Scripts (Recommended)
Add Relizy commands to your package.json scripts for convenience:
{
"scripts": {
"release": "relizy release",
"release:patch": "relizy release --patch",
"release:minor": "relizy release --minor",
"release:major": "relizy release --major"
}
}Now you can run releases with simple npm commands:
npm run release:patchMonorepo Setup
For monorepos, install Relizy in your root package.json:
# In the root of your monorepo
pnpm add -D relizyRelizy will automatically detect packages based on your workspace configuration:
packages:
- 'packages/*'{
"workspaces": [
"packages/*"
]
}Configuration File (Optional)
While Relizy works with zero configuration, you can create a config file for customization:
touch relizy.config.ts// relizy.config.ts
import { defineConfig } from 'relizy'
export default defineConfig({
monorepo: {
versionMode: 'selective',
packageGlobs: ['packages/*'],
},
})TIP
Configuration is completely optional. Start without a config file and add one only if you need custom behavior.
Environment Setup
NPM Publishing
To publish to npm, ensure you're logged in:
npm loginOr set an NPM token in your environment:
export NPM_TOKEN=your_token_hereOr use .env file
NPM_TOKEN=your_token_hereGitHub Releases
For GitHub releases, create a personal access token:
- Go to GitHub Settings → Developer settings → Personal access tokens
- Create a token with
reposcope - Set the token in your environment:
export RELIZY_GITHUB_TOKEN=your_github_tokenOr use .env file
RELIZY_GITHUB_TOKEN=your_github_tokenGitLab Releases
For GitLab releases, create a project access token:
- Go to your GitLab project → Settings → Access Tokens
- Create a token with
apiscope - Set the token in your environment:
export RELIZY_GITLAB_TOKEN=your_gitlab_tokenOr use .env file
RELIZY_GITLAB_TOKEN=your_gitlab_tokenINFO
These environment variables are only needed if you want to publish packages or create provider releases. They're not required for basic version bumping and changelog generation.
Next Steps
Now that Relizy is installed, learn how to use it:
- Getting Started - Run your first release
- CLI Commands - Learn about available commands
- Configuration - Customize Relizy's behavior