For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Beta

Functions

Create and manage functions using the Rippling CLI.

Use with AI:ChatGPT Claude Cursor

Access to the Rippling CLI is gated behind the Developer Program, which is currently in a closed beta.

Deploy & download​

rippling function deploy​

Creates a function deployment from function.yaml or JSON. --code-path cannot be combined with --data or --data-file.

FlagTypeRequiredDescription
--function-api-namestringnoAPI name of the function.
--code-pathstringnoSource file to inline in function.yaml mode. Relative paths resolve from the current directory and must stay under the function.yaml directory.
--dependencieskey=value listnonpm dependencies. Separate entries with ;.
--optionskey=value listnoRuntime-specific deployment options. Separate entries with ;.
--func-configstringnoPath to function.yaml. Used when --data and --data-file are omitted.
--datastringnoRequest body as inline JSON.
--data-filestringnoPath to a JSON request body.
--watchbooleannoPoll deployment status and logs until success or failure.
--jsonbooleannoPretty-print JSON.

Example:

rippling --context sandbox-editor function deploy \
--function-api-name my_function \
--code-path functions/my_function/src/function.ts \
--dependencies "@rippling/rippling-sdk=YOUR_SDK_VERSION" \
--watch \
--json

rippling function download​

Downloads a dev-bundle zip of the function draft.

FlagTypeRequiredDescription
--function-api-namestringyesAPI name of the function.
--outputstringnoPath for the zip. Default is <function-api-name>-dev-bundle.zip.
--datastringnoRequest body as inline JSON.
--data-filestringnoPath to a JSON request body.
--jsonbooleannoPretty-print JSON.

Example:

rippling function download --function-api-name my_function
rippling function download --function-api-name my_function --output ./my_function.zip

Functions​

rippling api functions create​

Creates a function.

FlagTypeRequiredDescription
--namestringnoFunction name.
--api-namestringnoFunction API name.
--descriptionstringnoFunction description.
--code-draftstringnoCurrent draft source.
--dependencies-filefilenoJSON object of dependencies. - reads stdin.
--is-asyncbooleannoRun the function asynchronously.
--typestringnoFunction type at creation. Allowed values: event, request. Defaults to event and cannot be changed later.
--source-upload-filefilenoSource zip checksum and size for request functions. JSON fields: sha256 (string), size_bytes (int).
--inputfilenoFull JSON body. Cannot be combined with field flags.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api functions create --name "My function" --api-name my_function --type event --json

rippling api functions list​

Lists functions.

FlagTypeRequiredDescription
--cursorstringnoPagination cursor.
--limitstringnoMaximum results. Default 10. Maximum 100.
--order-bystringnoSort expression.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api functions list
rippling api functions list --json

rippling api functions get​

Reads a specific function.

FlagTypeRequiredDescription
--function-api-namestringyesAPI name of the function.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api functions get --function-api-name my_function
rippling api functions get --function-api-name my_function --json

rippling api functions update​

Updates a function.

FlagTypeRequiredDescription
--function-api-namestringyesAPI name of the function.
--namestringnoFunction name.
--descriptionstringnoFunction description.
--code-draftstringnoCurrent draft source.
--dependencies-filefilenoJSON object of dependencies. - reads stdin.
--source-upload-filefilenoSource zip checksum and size for request functions. JSON fields: sha256 (string), size_bytes (int).
--inputfilenoFull JSON body. Cannot be combined with field flags.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api functions update --function-api-name my_function --description "Updated description" --json

Deployments​

rippling api function-deployments create​

Creates a deployment.

FlagTypeRequiredDescription
--function-api-namestringnoAPI name of the function.
--code-pathstringnoSource file to inline. Cannot be combined with --data or --data-file.
--dependencieskey=value listnonpm dependencies. Separate entries with ;.
--optionskey=value listnoRuntime options. Separate entries with ;.
--func-configstringnoPath to function.yaml. Used when --data and --data-file are omitted.
--datastringnoInline JSON body.
--data-filestringnoPath to a JSON body.
--watchbooleannoPoll until success or failure.
--jsonbooleannoPretty-print JSON.

Example:

rippling api function-deployments create --function-api-name my_function --code-path functions/my_function/src/function.ts --watch --json

rippling api function-deployments list​

Lists deployments for a specific function.

FlagTypeRequiredDescription
--function-api-namestringyesAPI name of the function.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-deployments list --function-api-name my_function
rippling api function-deployments list --function-api-name my_function --json

rippling api function-deployments get​

Reads a specific function deployment.

FlagTypeRequiredDescription
--deployment-idstringyesDeployment ID.
--function-api-namestringyesAPI name of the function.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-deployments get --deployment-id <deployment-id> --function-api-name my_function --json

Executions​

rippling api function-executions create​

Runs a function.

FlagTypeRequiredDescription
--function-api-namestringyesAPI name of the function.
--inputs-filefileyesExecution inputs. - reads stdin. The file is the inputs object.
--inputfilenoFull JSON body. Cannot be combined with field flags.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-executions create --function-api-name my_function --inputs-file ./request.json
rippling api function-executions create --function-api-name my_function --inputs-file ./request.json --json

rippling api function-executions list​

Lists executions for a specific function.

FlagTypeRequiredDescription
--function-api-namestringyesAPI name of the function.
--cursorstringnoPagination cursor.
--limitstringnoMaximum results. Default 10; maximum 100.
--order-bystringnoSort expression.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-executions list --function-api-name my_function
rippling api function-executions list --function-api-name my_function --json

rippling api function-executions get​

Reads a specific function execution.

FlagTypeRequiredDescription
--execution-idstringyesExecution ID.
--function-api-namestringyesAPI name of the function.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-executions get --execution-id <execution-id> --function-api-name my_function --json

Logs​

rippling api function-deployment-logs list​

Lists logs for a specific deployment.

FlagTypeRequiredDescription
--deployment-idstringyesDeployment ID.
--function-api-namestringyesAPI name of the function.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-deployment-logs list --deployment-id <deployment-id> --function-api-name my_function --json

rippling api function-execution-logs list​

Lists logs for a specific execution.

FlagTypeRequiredDescription
--execution-idstringyesExecution ID.
--function-api-namestringyesAPI name of the function.
--jsonbooleannoPrint the response as indented JSON.

Example:

rippling api function-execution-logs list --execution-id <execution-id> --function-api-name my_function --json