Skip to main content

Project

safira-cli project new

Create a new project

USAGE
  $ safira-cli project new [--help] [-l <value>] [-f springboot|quarkus] [--project-description <value>]
    [--java-pack-manager gradle|maven] [--java-springboot-version <value>] [--java-package <value>] [--java-version
    java8|java11|java17] [--application-port <value>] [--kong-kubernetes yes|no] [--use-database yes|no] [--database
    postgresql|mysql|mariadb|oracle] [--database-url <value>] [--database-user <value>] [--database-password <value>]
    [--export-spec yes|no] [--quarkus-version <value>]

FLAGS
  -f, --framework=(springboot|quarkus)
  -l, --language=java                           Programming language to use
  --application-port=8080                       Application port
  --database=(postgresql|mysql|mariadb|oracle)  The database provider
  --database-password=password123               The password of the database
  --database-url=localhost:5432/database        The url of the database
  --database-user=User                          The user of the database
  --export-spec=(yes|no)                        Export spec
  --help                                        Show CLI help.
  --java-pack-manager=(gradle|maven)            Java package management
  --java-package=com.safira.demo                Java package
  --java-springboot-version=2.5.13              Springboot version
  --java-version=(java8|java11|java17)          Java version
  --kong-kubernetes=(yes|no)                    Generate Kong for Kubernetes configuration
  --project-description=<value>                 The description of the new project.
  --quarkus-version=<value>                     Quarkus version
  --use-database=(yes|no)                       Use database

DESCRIPTION
  Create a new project

EXAMPLES
  $ safira-cli project new

  $ safira-cli project new app-name

  $ safira-cli project new app-name --language java11 --java-pack-manager gradle --application-port 8090

  $ safira-cli project new .  -create a project in the current folder

safira-cli project update

Update an existing safira project

USAGE
  $ safira-cli project update [-h] [-o <value>] [-i <value>] [--inso-spec-name <value>]

FLAGS
  -h, --help                        Show CLI help.
  -i, --insomnia-workspace=<value>  Import OpenAPI file from the INSOMNIA Workspace.
  -o, --openapi-file-path=<value>   The path to the OpenAPI file.
  --inso-spec-name=<value>          The name of the INSO specification.

DESCRIPTION
  Update an existing safira project

safira-cli project build-publish

Build your project generating docker image.

USAGE
  $ safira-cli project build-publish [--help] [--docker-file <value>] [-v <value>] [--skip-test yes|no]
    [--docker-repository <value>]

FLAGS
  -v, --version=<value>        App Version
  --docker-file=<value>        Dockerfile path
  --docker-repository=<value>  Docker repository
  --help                       Show CLI help.
  --skip-test=<option>         Skip test
                               <options: yes|no>

DESCRIPTION
  Build your project generating docker image.

EXAMPLES
  $ safira-cli project build-publish

  $ safira-cli project build-publish --version 1.0.0 --skip-test true

  $ safira-cli project build-publish --docker-file ./src/main/docker/Dockerfile