Skip to main content

genezio deploy

Usage

genezio deploy [--backend] [--frontend] [--stage <stage_name>] [--env <envFile>] [--subdomain <subdomain>] [--installDeps] [--logLevel <logLevel>] [-h | --help]

Description

info

You must be authenticated to use this command.

This command deploys your project to the genezio infrastructure and generates the SDK. You can then use it to access the functions from the cloud.

In case some of your methods are of type: http, calling this command will return some links as output in the CLI. You can use these links to call your type: http methods.

Options

If you execute this command without --backend or --frontend both the backend and the frontend will be deployed.

If you executed this command with the --backend option, the backend code specified in the genezio.yaml configuration file will be deployed.

If you executed this command with the --frontend option, the frontend code specified in the genezio.yaml configuration file will be deployed.

--backend: Deploy only the backend application.

--frontend: Deploy only the frontend application.

--install-deps: Automatically install missing dependencies. By default, this behavior is turned off.

--disable-optimization: Disable dependency optimization. By default, optimization is enabled.

--image <image>: Path to a Dockerfile. Used for projects deployed containerized. Learn more.

--env <envFile>: Load environment variables from a given file. Learn more.

--zip <zipPath>: Deploy a zip file directly. The zip file must contain a valid genezio.yaml and an index.mjs as an entrypoint file. The source code files should be directly in the root of the zip archive.

--stage <stage>: Set the environment name to deploy to. By default, the stage is set to "prod". Learn more.

--subdomain <subdomain>: Set a subdomain for your frontend. If not set, the subdomain will be randomly generated.

--config <config>: Use a specific genezio.yaml file as the deployment configuration. By default, it uses ./genezio.yaml. Learn more.

--logLevel <logLevel>: Set the verbosity of the output. The supported values are: trace/debug/info/warn/error. If you don't specify this argument, the default value used is info.

-h | --help: Display a help message for more information on each argument and how to use it.