Skip to Content

gram stage function

The gram stage function command stages a Gram Function zip file to a deployment configuration.

Usage

gram stage function --slug my-gram-function --location ./path/to/function.zip

Options

slug (required)

This adds the slug to identify the source.

gram stage function --slug my-gram-function [command options]

location (required)

This specifies the location of a zip file containing Gram Functions code. It can be a local file or a URL.

gram stage function --location ./path/to/function.zip [command options]

name

This adds a human-readable name for the source.

gram stage function --name "My Gram Function" [command options]

runtime

This specifies the runtime environment for the function. If not specified, it defaults to nodejs:22.

gram stage function --runtime nodejs:22 [command options]

Last updated on