Skip to content

CLI commands

Relicta ships as a single binary with a handful of core commands. Every command supports --help, --dry-run, and --json for safe previews and machine-readable output.

Scaffold a relicta.config.yaml in the current repo.

Terminal window
relicta init
  • Prompts for providers (AI, GitHub, npm) and writes a starter config.
  • Use --config <path> to write to a custom location.

Analyze commits since the last tag and propose the next semantic version.

Terminal window
relicta plan [--from <ref>] [--to <ref>] [--json] [--dry-run]
  • Detects major/minor/patch (supports prerelease/build metadata via config).
  • --from/--to let you override the commit range.
  • --json emits structured output for CI dashboards.

Generate release notes and changelog entries (optionally with AI).

Terminal window
relicta notes [--ai] [--ai-provider <provider>] [--tone <tone>] [--audience <audience>] [--json] [--dry-run]
  • Uses your configured AI provider (OpenAI, Anthropic, Gemini, Azure, Ollama).
  • Writes to the changelog file defined in config; --dry-run skips file writes.
  • --json returns the generated content without modifying files.

Lock the planned release and capture approval context.

Terminal window
relicta approve [--by "<name>"] [--note "<context>"] [--json]
  • Records approver info for auditability before publish.
  • --by and --note annotate the approval record.

Tag the repo and run plugins (GitHub releases, npm, Slack, LaunchNotes, custom gRPC).

Terminal window
relicta publish [--force] [--dry-run] [--json]
  • Creates the tag and executes configured plugins.
  • --force skips approval if your policy allows.
  • --dry-run validates plugin wiring without writing tags or publishing.
  • --config <path>: point to a specific config file.
  • --chdir <dir>: run as if started in another directory.
  • --json: emit machine-readable output for automation.
  • --dry-run: preview without changing the repo.
  • AI: OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, OLLAMA_HOST
  • GitHub: GITHUB_TOKEN
  • Plugins: SLACK_WEBHOOK_URL, NPM_TOKEN, LAUNCHNOTES_API_TOKEN (see Plugins).
  • Pair --json with jq for CI annotations and dashboards.
  • Use relicta publish --dry-run to validate tags/plugins before a real release.
  • Keep relicta.config.yaml in git so local and CI runs behave identically.