Module io.jooby.cli
Package io.jooby.cli

Class CreateCmd

java.lang.Object
io.jooby.cli.Cmd
io.jooby.cli.CreateCmd
All Implemented Interfaces:
Runnable

public class CreateCmd extends Cmd
Create application command.

Usage:


 jooby> help create
 Missing required parameter: <name>
 Usage: jooby create [-dgi] [-kt] [-stork] [-s=<server>] <name>
 Creates a new application
       <name>              Application name or coordinates (groupId:artifactId:
                             version)
   -d, --docker            Generates a dockerfile
   -g, --gradle            Generates a Gradle project
   -i                      Start interactive mode
       -kt, --kotlin       Generates a Kotlin application
   -s, --server=<server>   Choose one of the available servers: jetty, netty or
                             undertow
       -stork              Add Stork Maven plugin to build (Maven only)
 
Since:
2.0.6
  • Constructor Details

    • CreateCmd

      public CreateCmd()
  • Method Details

    • run

      public void run(@NonNull CliContext ctx) throws Exception
      Description copied from class: Cmd
      Run a command.
      Specified by:
      run in class Cmd
      Parameters:
      ctx - Command context.
      Throws:
      Exception - If something goes wrong.