Technical Reference / speakeasy stage function
speakeasy stage function
Stage a function zip file to a deployment configuration.
The speakeasy stage function command stages a function zip file to a deployment configuration.
For more information on the base behavior of the speakeasy stage command, see the
speakeasy stage reference.
For a Functions Framework project, speakeasy functions stage stages the built
zip without these flags, and speakeasy functions push builds, stages, and
deploys in one step. See Build and deploy.
speakeasy stage function --slug my-function --location ./path/to/function.zipOptions
Section titled “Options”slug (required)
Section titled “slug (required)”This adds the slug to identify the source.
speakeasy stage function --slug my-function [command options]location (required)
Section titled “location (required)”This specifies the location of a zip file containing function code. It can be a local file or a URL.
speakeasy stage function --location ./path/to/function.zip [command options]This adds a human-readable name for the source. If not specified, the name defaults to the slug.
speakeasy stage function --name "My Function" [command options]runtime
Section titled “runtime”This specifies the runtime environment for the function. Supported values are
nodejs:22 and nodejs:24. If not specified, it defaults to nodejs:22.
speakeasy stage function --runtime nodejs:22 [command options]This specifies the number of instances to run for the function.
speakeasy stage function --scale 2 [command options]memory-mib
Section titled “memory-mib”This specifies the amount of memory in MiB to allocate for the function (1 MiB = 1,024 x 1,024 bytes).
speakeasy stage function --memory-mib 256 [command options]