Skip to content

Build and run a local per-project sea-orm-cli? #1889

Closed Answered by tyt2y3
Expurple asked this question in Q&A
Discussion options

You must be logged in to vote

That's a legit setup. I would suggest you to always upgrade to the latest version, but meanwhile before you upgrade, you can:

  1. create a crate in the workspace that depends on a particular version of sea-orm-cli
  2. create a main.rs and call the cli commands
  3. advice your teammates to use the local version, i.e. my-project-cli

Ref: https://github.com/SeaQL/sea-orm/blob/master/sea-orm-cli/src/bin/main.rs

There's a tiny bit of boilerplate, but everything is exposed as lib in the cli.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Expurple
Comment options

@Expurple
Comment options

@Expurple
Comment options

Answer selected by Expurple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants