deploy Commands (Retiring)

Commands to deploy artifacts to an environment.

On January 31, 2025, Salesforce will retire Salesforce Functions, also known as Salesforce Elastic Services. See Salesforce Functions Retirement for more information.

Important

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:

1sf deploy functions --connected-org org-alias

Deploy to 'deploy-branch':

1sf deploy functions --connected-org org-alias --branch deploy-branch

Overwrite the remote repository:

1sf deploy functions --connected-org org-alias --force

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