Tethys Platform
Table Of Contents
Table Of Contents

gen command

Generate supporting files for Tethys installations.

usage: tethys gen [-h] [-d DIRECTORY] [-p {major,minor,patch,none}]
                  [--client-max-body-size CLIENT_MAX_BODY_SIZE]
                  [--asgi-processes ASGI_PROCESSES]
                  [--tethys-port TETHYS_PORT] [--overwrite]
                  {asgi_service,nginx,nginx_service,portal_config,services,install,metayaml}

Positional Arguments

type

Possible choices: asgi_service, nginx, nginx_service, portal_config, services, install, metayaml

The type of object to generate.

Named Arguments

-d, --directory

Destination directory for the generated object.

-p, --pin-level

Possible choices: major, minor, patch, none

Level to pin dependencies when generating the meta.yaml. One of "major", "minor", "patch", or "none". Defaults to "none".

Default: "none"

--client-max-body-size

Populate the client_max_body_size parameter for nginx config. Defaults to "75M".

Default: "75M"

--asgi-processes

The maximum number of asgi worker processes. Defaults to 4.

Default: 4

--tethys-port

Port for the Tethys Server to run on in production. This is used when generating the Daphne and nginx configuration files. Defaults to 8000.

Default: 8000

--overwrite

Overwrite existing file without prompting.

Default: False