nyron init
Initialize Nyron configuration in your project
nyron init
Initialize Nyron in your project.
Usage
npx @nyron/cli initThis command creates a usable first-run setup in your current project:
nyron.config.ts.nyron/meta.json.nyron/versions.json
Options
--force
Overwrite existing configuration file if one already exists.
npx @nyron/cli init --forceWhat It Creates
Nyron detects your repository and package layout when possible. For a single-package repo, the generated config looks like this:
import { defineConfig } from "@nyron/cli/config"
export default defineConfig({
repo: "owner/repo",
projects: {
main: {
tagPrefix: "v",
path: ".",
},
},
})For monorepos, Nyron creates one project entry per discovered workspace package.
After writing the config, Nyron synchronizes .nyron/meta.json and .nyron/versions.json using the discovered project versions so you can use nyron bump immediately.
Next Steps
After initialization:
- Review and adjust
nyron.config.tsif the detected projects need tweaking - Run
nyron bumpto update a version - Run
nyron push-tagwhen you are ready to mark a release boundary