Skip to content
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 Oct 2, 2023
Maintainer Author

@Expurple
Comment options

Expurple Oct 2, 2023
Maintainer Author

@Expurple
Comment options

Expurple Dec 28, 2023
Maintainer Author

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