CLI Quickstart
Install the Relevate CLI, start a local preview, and make your first edit without creating an account.
You do not need an account to use Relevate locally. You can install the CLI, start a preview, and test your docs on your own machine.
Try Relevate Locally
Install or run the CLI
Pick one option:
- npx relevate init
- npm install -g relevaterelevate init
- pnpm add -g relevaterelevate init
- bun add -g relevaterelevate init
This creates the required files for you.
Edit a page
Open index.mdx and change the text.
---
title: Welcome
description: Start here
---
# Welcome to our docs
This site is running with Relevate.
Save the file. Refresh the page if needed.
What Gets Created
After running relevate init, your project looks like this:
If The Preview Looks Stale
Sometimes a cached build can get out of sync while Relevate is still in beta. If the preview does not reflect your latest changes, clean the project cache and start again.
relevate clean
relevate preview
You usually do not need relevate clean. Use it when the local preview looks stuck, out of date, or otherwise wrong.
Add Another Language
When you are ready, add another language folder:
Then enable languages in docs.json:
{
"navigation": {
"languages": {
"default": "en",
"items": ["en", "jp"]
},
"tabs": [
{
"id": "docs",
"label": {
"en": "Docs",
"jp": "ドã‚ュメント"
},
"content": ["index"]
}
]
}
}