Management commands
Marten comes with a built-in command line interface (CLI) that developers can leverage to perform common actions and interact with the framework. This tool provides a set of built-in sub-commands that can be easily extended with new commands.
Usage
The marten
command is available with each Marten installation, and it is also automatically compiled when the Marten shard is installed. This means that you can either use the marten
command from anywhere in your system (if the Marten CLI was installed globally like described in Installation) or you can run the relative bin/marten
command from inside your project structure.
When the marten
command is executed, it will look for a relative manage.cr
file to identify your current project, its settings, and its installed applications, which in turn will define the available sub-commands that you can run.
The marten
command is intended to be used as follows:
marten [command] [options] [arguments]
As you can see, the marten
CLI must be used with a specific command, possibly followed by options and arguments (which may be required or not depending on the considered command). All the built-in commands are listed in the management commands reference.