Dotnet CLI Commands


This reference documents every command and flag available in Frontier - Dotnet command-line interface. The dotnet CLI helps with scaffolfing project, endpoints and other features right from the terminal.

Help Menu

Run the CLI option below for a list of commands and options

Usage

frontier dotnet <command> --help
OptionDescription
--helpDisplays the help menu.

CLI Command

frontier dotnet includes the following sub-commands:

CommandDescription
addAdd a feature to a project
create-projectScaffold a new project
migratemanage migrations for a database

create-project

create-project will scaffold a new project for you, using one of the presets selected from its interactive shell.

Usage

frontier dotnet create-project <project-name>
OptionDescription
--dotnetVersionThe version of the docker dotnet sdk to use when creating the project.
--withSentryInclude Sentry logging in the project.
--helpShow debug logs when creating the project.

add

Adds a feature to the project.

Usage

frontier dotnet add <command>
CommandDescription
entitydatabase model
configurationdatabase configuration
queryapplication query class, handler & validator
commandapplication command class, handler & validator
endpointAPI project endpoint folder & sample route

migrate

Manage migrations for a database.

You can learn more about the migration commands on the migrations reference.

Usage

frontier dotnet migrate <command>.
CommandDescription
newnew migration
upapply all migrations
downrevert to a previous migration
removeremove latest migration