Review Environments
sfp review-envs acquire
sfp review-envs acquireUSAGE
$ sfp review-envs acquire -r <value> -t pr|issue|user|custom -i <value> -d <value> --used-by <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] [-w] [--poll-interval <value>] [--max-wait-time
<value>] [--domain <value>]
FLAGS
-d, --duration=<value> (required) Duration in minutes for which the environment is needed (1-480)
-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.
-i, --id=<value> (required) Assignment identifier (e.g., PR number, issue number, username, or custom
ID)
-r, --repository=<value> (required) Repository identifier in format owner/repo (GitHub/GitLab) or
org/project/repo (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, --type=<option> (required) Type of assignment (pr, issue, user, or custom)
<options: pr|issue|user|custom>
-w, --wait Wait for the environment to become available if currently in use
--domain=<value> Specific domain to acquire (for multi-domain assignments)
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--max-wait-time=<value> [default: 480] Maximum time to wait in minutes when --wait is used (default: 480
minutes/8 hours)
--poll-interval=<value> [default: 30] Polling interval in seconds when waiting (10-300, default: 30)
--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
--used-by=<value> (required) Identifier of the process or user acquiring the environment
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Acquire a review environment for use, marking it as in-use for a specified duration
EXAMPLES
$ sfp review-envs acquire --type pr --id 123 --repository myorg/myrepo --duration 30 --used-by "ci-pipeline-123"
$ sfp review-envs acquire --type user --id john.doe --repository myorg/myrepo --duration 60 --used-by "local-dev"
$ sfp review-envs acquire --type custom --id demo-session --repository myorg/myrepo --duration 120 --used-by "demo-process"
$ sfp review-envs acquire --type pr --id 123 --repository myorg/myrepo --duration 30 --used-by "ci-pipeline-123" --wait
$ sfp review-envs acquire --type pr --id 123 --repository myorg/myrepo --duration 30 --used-by "ci-pipeline-123" --wait --poll-interval 60
$ sfp review-envs acquire --type pr --id 123 --repository myorg/myrepo --duration 30 --used-by "ci-pipeline-123" --wait --max-wait-time 120sfp review-envs assign
sfp review-envs assignsfp review-envs extend
sfp review-envs extendsfp review-envs list
sfp review-envs listsfp review-envs release
sfp review-envs releasesfp review-envs rules list
sfp review-envs rules listsfp review-envs rules match
sfp review-envs rules matchsfp review-envs unassign
sfp review-envs unassignLast updated
Was this helpful?