# Create Application

# usage

Usage: oredge app create [OPTIONS]

OPTIONS:
    --type string                      application type, http(default) or sni-proxy or tcp.
    --domain string                    domain, can add multiple times.
    --partition integer                partition id, can add multiple times.
    --is-default bool                  is default application.
    --http-port integer                http port, can add multiple times.
    --https-port integer               https port, can add multiple times.
    --tcp-port integer                 tcp port, can add multiple times.
    --http2-status string              http2 status, global(default) or enable or disable.
    --label string                     label.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --config                           specify config file, default is ~/.oredge/config.

# example

  1. create a http application.
# oredge app create --domain www.test.com --partition 1
ID: 1
  1. create a sni-proxy application.
# oredge app create --domain www.test.com --partition 1 --type sni-proxy
ID: 1
  1. create a http application with label, http2-status options.
# oredge app create --domain www.test.com --partition 1 --label "for test" --http2-status disable
ID: 1