Environment
sfp server environment create
sfp server environment createUSAGE
$ sfp server environment create -r <value> -n <value> -c dev|test|snapshot|release -b <value> -d <value> [--json] [-e
<value>] [-t <value>] [--sfp-server-url <value>] [-g <value>...] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [-o <value>] [-t <value>] [--devhubusername
<value>] [--inactive] [-m <value>]
FLAGS
-b, --branch=<value> (required) Git branch associated with this environment
-c, --category=<option> (required) Category of the environment
<options: dev|test|snapshot|release>
-d, --description=<value> (required) Description of the environment
-e, --email=<value> [env: SFP_SERVER_USER] Email address for authenticated user. Ignored if
--application-token is provided.
-g, --logsgroupsymbol=<value>... Symbol used by CICD platform to group/collapse logs in the console. Provide an
opening group, and an optional closing group symbol.
-m, --metadata=<value> Additional metadata as JSON object
-n, --name=<value> (required) Name of the environment
-o, --targetusername=<value> Salesforce username for this environment (if not provided, will prompt for
selection)
-r, --repository=<value> (required) Repository identifier (e.g., owner/repo)
-t, --application-token=<value> [env: SFP_SERVER_TOKEN] Application token for CI/CD authentication. Takes precedence
over --email.
-t, --tags=<value> Comma-separated tags for the environment
--devhubusername=<value> Parent production org username for sandbox authentication (auto-detected for JIT
sandboxes)
--inactive Create the environment as inactive
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--sfp-server-url=<value> [env: SFP_SERVER_URL] URL of the SFP server. Can be set via environment variable
`SFP_SERVER_URL` or config: sfp config:set server-url
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Create a new environment in the server
EXAMPLES
$ sfp server environment create --repository myorg/myrepo --name UAT --category test --branch main --description "User Acceptance Testing Environment" --targetusername [email protected]
$ sfp server environment create --repository myorg/myrepo --name Production --category release --branch main --description "Production Environment" # Interactive username selectionsfp server environment delete
sfp server environment deletesfp server environment get
sfp server environment getsfp server environment list
sfp server environment listsfp server environment lock
sfp server environment locksfp server environment unlock
sfp server environment unlockLast updated
Was this helpful?