deploy Commands

Commands to deploy artifacts to an environment.

deploy functions

Deploy a Salesforce Function to an org from your local project.

Description for deploy functions

You must run this command from within a git repository. Only committed changes to Functions are deployed. The active branch is deployed unless specified otherwise with `--branch`.

Examples for deploy functions

Deploy a Salesforce Function:

Deploy to 'deploy-branch':

Overwrite the remote repository:

Usage

sf deploy functions
[--json]
-o CONNECTED-ORG
[-b BRANCH]
[--force]
[-q]

Flags

--json
Optional

Format output as json.

Type: boolean
-o | --connected-org CONNECTED-ORG
Required

Username or alias for the org that the compute environment should be connected to.

Type: option
-b | --branch BRANCH
Optional

Deploy the latest commit from a branch different from the currently active branch.

Type: option
--force
Optional

Ignore warnings and overwrite remote repository (not allowed in production).

Type: boolean
-q | --quiet
Optional

Limit the amount of output displayed from the deploy process.

Type: boolean