You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Clear manual mentions a migration CLI, but I cannot figure out how to access it. Building with either src/clear.cr or src/clear/cli.cr as an entrypoint produces an executable that does nothing.
The text was updated successfully, but these errors were encountered:
Crystal is compiled software so it's hard to get information over your code (e.g. migrations files, model description) without compiling your code first.
To use the CLI, you need to use
# in your application entry pointClear.with_cli do# your startup code goes hereServer.start #exampleend
Then you can call crystal path/to/your/entrypoint.cr -- clear --help
For now, CLI is still very basic but hopefully I will fix this soon.
this is an example of one of my project using the CLI
Your bootstrap point must be written like this:
Clear.with_cli doKemal.run # exampleend
So far the CLI implementation is lacking a bit of features; it can manage migrations but you can run them manually and/or manage you own CLI implementation:
The Clear manual mentions a migration CLI, but I cannot figure out how to access it. Building with either
src/clear.cr
orsrc/clear/cli.cr
as an entrypoint produces an executable that does nothing.The text was updated successfully, but these errors were encountered: