Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create @sequelize/cli as a replacement for sequelize-cli #17195

Merged
merged 23 commits into from
Apr 6, 2024
Merged

Conversation

ephys
Copy link
Member

@ephys ephys commented Mar 24, 2024

Description of Changes

Closes #13875

This PR adds the basics of the new @sequelize/cli. It currently supports a single command: yarn sequelize migration:generate

This command can generate the migration in 4 formats: sql, typescript (with import), cjs or esm.

Feature showcase

The cli automatically prompts when an input is not provided:

image

Unless --no-interactive is provided, in which case it will throw an error for missing flags:

image

This CLI also supports --json, which restricts the stdout to JSON data

image

And --help

image

TODO

@ephys ephys marked this pull request as ready for review April 5, 2024 13:19
@ephys ephys requested a review from a team as a code owner April 5, 2024 13:19
@ephys ephys requested a review from WikiRik April 5, 2024 13:19
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

packages/cli/README.md Outdated Show resolved Hide resolved
packages/cli/package.json Outdated Show resolved Hide resolved
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do another check on my Windows machine later, but we can merge before that

@ephys ephys enabled auto-merge (squash) April 6, 2024 17:36
@ephys ephys merged commit ec00aed into main Apr 6, 2024
51 checks passed
@ephys ephys deleted the ephys/cli branch April 6, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To document
Development

Successfully merging this pull request may close these issues.

Add scope to CLI project
2 participants