USAGE
$ 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> Email address for authenticated user. Ignored if --application-token is provided.
Can be set via SFP_SERVER_USER env var.
-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 for GitHub/GitLab or
org/project/repo for Azure DevOps)
-t, --application-token=<value> Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
(CLI flags take precedence over env vars).
-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> URL of the SFP server. Can be set via SFP_SERVER_URL env var 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 uat@mycompany.com
$ sfp server environment create --repository myorg/myrepo --name Production --category release --branch main --description "Production Environment" # Interactive username selection