class Marten::CLI::Manage
- Marten::CLI::Manage
- Reference
- Object
Overview
The manage CLI.
The manage (or management) CLI allows developers to interact with their Marten projects by issuing sub-commands. These sub-commands are either "built-in" (Marten comes with a predefined set of commands to handle various things such as database management, projects / apps initializations, etc), or they are provided by installed apps.
Defined in:
marten/cli/manage.crmarten/cli/manage/command/base.cr
marten/cli/manage/command/clearsessions.cr
marten/cli/manage/command/collect_assets.cr
marten/cli/manage/command/gen.cr
marten/cli/manage/command/gen_migrations.cr
marten/cli/manage/command/list_migrations.cr
marten/cli/manage/command/migrate.cr
marten/cli/manage/command/new.cr
marten/cli/manage/command/new/context.cr
marten/cli/manage/command/new/templates.cr
marten/cli/manage/command/reset_migrations.cr
marten/cli/manage/command/routes.cr
marten/cli/manage/command/serve.cr
marten/cli/manage/command/version.cr
marten/cli/manage/errors.cr
Constructors
Class Method Summary
-
.register_subcommand(command_klass : Command::Base.class)
Allows to register a new command in order to make it available to the management CLI.
Instance Method Summary
Constructor Detail
def self.new(options : Array(String), stdout : IO = STDOUT, stderr : IO = STDERR, name : String = Marten::CLI::DEFAULT_COMMAND_NAME)
#
Class Method Detail
Allows to register a new command in order to make it available to the management CLI.