Skip to main content

Mockserver

safira-cli mockserver install

Install a mockserver

USAGE
  $ safira-cli mockserver install [--domain <value>] [--secure yes|no] [--ssl yes|no] [--crt-file <value>] [--key-file
    <value>] [--secure-admin yes|no] [--cors <value>]

FLAGS
  --cors=<value>           List of hosts to configure Cors
  --crt-file=<value>       Specifies the mockserver .crt file path
  --domain=<value>         Specifies the domain to use in the application
  --key-file=<value>       Specifies the mockserver .key file path
  --secure=<option>        Specifies if the application will have HTTPS
                           <options: yes|no>
  --secure-admin=<option>  Specifies if CPanel must be secured with apikey
                           <options: yes|no>
  --ssl=<option>           Specifies if the application will have HTTPS
                           <options: yes|no>

DESCRIPTION
  Install a mockserver

EXAMPLES
  $ safira-cli mockserver install

safira-cli mockserver remove

Remove mockserver

USAGE
  $ safira-cli mockserver remove [--help]

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Remove mockserver

EXAMPLES
  $ safira-cli mockserver remove

safira-cli mockserver spec deploy

Deploys the spec to the mock server

USAGE
  $ safira-cli mockserver spec deploy [--help] [--server-url <value>] [--context <value>] [--api-key <value>]

FLAGS
  --api-key=<value>     api key
  --context=<value>     api context
  --help                Show CLI help.
  --server-url=<value>  mock server url

DESCRIPTION
  Deploys the spec to the mock server

EXAMPLES
  $ safira-cli mockserver spec deploy