Environment
sfp server environment
sfp server environmentCommands
sfp server environment create
sfp server environment createUSAGE
$ sfp server environment create -n <value> [--json] [-t <value>] [-d <value>]
[--sfdx-auth-url <value>] [--repository <value>] [-e <value> | -a <value>]
[--sfp-server-url <value>] [-g <value>...] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-n, --name=<value> (required) Name of the environment
-t, --type=<value> Environment type (production, staging, dev, sandbox)
-d, --description=<value> Description of the environment
--sfdx-auth-url=<value> SFDX auth URL for the Salesforce org
--repository=<value> Repository identifier (e.g., owner/repo)
-m, --metadata=<value> JSON metadata to associate with the environment
AUTHENTICATION
-e, --email=<value> Email address for authenticated CLI user
-a, --application-token=<value> Application token for authentication
--sfp-server-url=<value> URL of the SFP server
OTHER OPTIONS
--json Format output as json
-g, --logsgroupsymbol=<value>... Symbol used by CICD platform to group/collapse logs
--loglevel=<option> [default: info] logging level
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
DESCRIPTION
Create a new environment in the server
Environments represent Salesforce orgs (production, sandbox, scratch orgs)
that can be targets for deployments and releases.
EXAMPLES
$ sfp server environment create --name production --type production
$ sfp server environment create --name staging --type staging --description "Staging environment for UAT"
$ sfp server environment create --name dev-sandbox --type sandbox --sfdx-auth-url force://...
$ sfp server environment create --name qa-env --type sandbox --repository myorg/myreposfp server environment list
sfp server environment listOutput Formats
sfp server environment get
sfp server environment getsfp server environment lock
sfp server environment locksfp server environment unlock
sfp server environment unlocksfp server environment delete
sfp server environment deleteUse Cases
CI/CD Pipeline with Environment Locking
Environment Matrix for Parallel Testing
Best Practices
Last updated