Server
The qaskx-cli generate server command is used to generate server code based on the
OpenAPI service specified as a parameter or in the **rediOps" devops.json file. The server
program would then normally be connected to by the client program that can also be generated.
The generated code is not complete and it may not compile without the addition of custom code. Some generators can be re-run and others not so please ensure that your code is managed under a version control system and you have committed recent changes before running the generate command.
The command help is shown below.
Usage: qaskx-cli generate server -d=<Devops file path> [-n=<name>] [-o=<output dir>] [-p=<parent dir>] [-f=<format>] [-t=<template location>] [--overwrite] [--token=<value>] [-v | --vv | --vvv | --silent] [-c=<conf file>] [--colourCLI] [--offline] [--env=<environment file>]
The generate server command creates server code.
The template along wth the .qaskx definition determines the code language and features that
are generated.
You can select whether to overwrite any existing code or not. If you are executing over
existing code please commit your current changes.
The process uses the OpenAPI, rediOps, qaskx and local .qaskx definition as sources of variables.
For more details see the documentation at https://docs.qaskx.one/qaskx-cli/cmd/generate/server/ .
Options:
-d, --devops rediOps (devops.json) file path
-n, --name Server application name
-p, --parent Parent (or root) directory for project plus rediOps (devops.json) file
-o, --output Output directory for generated code
-f, --format Server format and language
--overwrite Overwrite existing code
-t, --template Template local directory or VCS server resource (env $QASKX_TEMPLATE_FOLDER)
--token VCS access token (env $QASKX_VCS_TOKEN)
-v, --verbose Verbose logging
--vv Verbose logging level 3
--vvv Verbose logging level 5
--silent Silent running
--colourCLI Colour terminal and command line (env $QASKX_COLOUR_CLI)
-c, --conf Configuration file (env $QASKX_CONFIG_FILE)
--offline Offline mode (env $QASKX_OFFLINE)
--env Environment file to use (default ".env")