Skip to content

Comments

feat(cli): add basic .ec import command (DSL -> frontmatter)#2170

Open
thorthelegend99 wants to merge 2 commits intoevent-catalog:mainfrom
thorthelegend99:feat/cli-import-basic
Open

feat(cli): add basic .ec import command (DSL -> frontmatter)#2170
thorthelegend99 wants to merge 2 commits intoevent-catalog:mainfrom
thorthelegend99:feat/cli-import-basic

Conversation

@thorthelegend99
Copy link
Contributor

Summary

  • adds a basic eventcatalog import <file.ec> command
  • parses simple DSL blocks for event, command, query, service, and domain
  • writes resources using existing SDK write functions (frontmatter files)
  • supports --dry-run to preview imports without writing
  • adds a basic test with a simple example (event + service sends)

Example

eventcatalog import ./catalog.ec --dir .

Notes

This is intentionally v1/basic and currently supports a narrow subset of DSL lines:

  • version, name, summary
  • sends <type> <id[@version]>
  • receives <type> <id[@version]>
  • service <id[@version]> inside domain blocks

Validation

  • pnpm --filter @eventcatalog/cli exec vitest --run src/test/cli-import.test.ts

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

🦋 Changeset detected

Latest commit: 97c6f06

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eventcatalog/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Feb 17, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants