nyron init
Initialize Nyron configuration in your project
nyron init
Initialize Nyron configuration in your project.
Usage
npx @nyron/cli init
This command creates a nyron.config.ts
file in your project root with default configuration settings.
Options
--force
Overwrite existing configuration file if one already exists.
npx @nyron/cli init --force
--json
Generate JSON config instead of TypeScript.
npx @nyron/cli init --json
JSON configuration support is coming soon.
What It Creates
The command generates a configuration file with the following structure:
import { defineConfig } from "@nyron/cli/config"
export default defineConfig({
repo: "owner/repo",
projects: {
sdk: {
tagPrefix: "@my-package/sdk@",
path: "packages/sdk",
},
service: {
tagPrefix: "@my-package/service@",
path: "apps/service",
},
},
autoChangelog: true,
onPushReminder: true,
})
Make sure to edit this file to match your actual repository structure and project names.
Next Steps
After initialization:
- Edit the
nyron.config.ts
file to match your project structure - Set up a GitHub token for enhanced changelogs
- Run
nyron diff
to see your recent commits