Org
Authenticate, open, and operate on Salesforce orgs
sfp org artifacts querysfp org cancel-deploysfp org dependency expandsfp org dependency explainsfp org dependency installsfp org dependency shrinksfp org dev createsfp org dev grantsfp org drift analyzesfp org flow activatesfp org flow cleanupsfp org flow deactivatesfp org listsfp org loginsfp org opensfp org profile mergesfp org profile reconcilesfp org profile retrievesfp org retrieve by-namesfp org retrieve metadatasfp org user deactivatesfp org user freezesfp org user provisionsfp org user unfreeze
sfp org artifacts query
Fetch details about artifacts installed in a target org
USAGE
$ sfp org artifacts query -o <value> [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-o, --targetusername=<value> (required) Username or alias of the target org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Fetch details about artifacts installed in a target org
ALIASES
$ sfp artifacts query
EXAMPLES
$ sfp artifacts:query -o <target_org>sfp org cancel-deploy
Cancel Metadata API deployments in an org.
USAGE
$ sfp org cancel-deploy -o <value> [--json] [-i <value>] [--wait <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-i, --job-id=<value> Cancel the specific deployment request (0Af id) instead of every active deployment.
-o, --targetusername=<value> (required) Username or alias of the target org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--wait=<value> Number of minutes to wait for cancellations to complete and the org's deployment queue
to free up. Defaults to not waiting.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Cancel Metadata API deployments in an org.
Without --job-id, every active (Pending or InProgress) deployment created by the authenticated user is cancelled;
active deployments owned by other users are reported and left untouched. This mode is intended for orgs leased or
locked to a single run — review environments, locked check-only environments. Use --job-id to cancel one specific
deployment regardless of who created it.
Salesforce processes cancellation asynchronously: a queued deployment cancels immediately, while an in-progress one
moves to Canceling and only completes at the next cancellable point (running Apex tests are not interrupted). The
org's deployment queue advances on its own once the cancellation completes; use --wait to block until the queue is
free.
EXAMPLES
$ sfp org cancel-deploy -o myTargetOrg
$ sfp org cancel-deploy -o myTargetOrg --job-id 0AfXXXXXXXXXXXXXXX
$ sfp org cancel-deploy -o myTargetOrg --wait 10sfp org dependency expand
Expand the dependency list in sfdx-project.json file for each package, fix the gap of dependencies from its dependent packages
USAGE
$ sfp org dependency expand -v <value> [--json] [-o] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-o, --overwrite Flag to overwrite existing sfdx-project.json file
-v, --targetdevhubusername=<value> (required) Username or alias of the Dev Hub org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Expand the dependency list in sfdx-project.json file for each package, fix the gap of dependencies from its dependent
packages
ALIASES
$ sfp dependency expandsfp org dependency explain
Lists the resolved dependencies for packages in the project
USAGE
$ sfp org dependency explain [--json] [-p <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-p, --package=<value> Name of the specific package to show dependencies for
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Lists the resolved dependencies for packages in the project
ALIASES
$ sfp dependency explainsfp org dependency install
Install all the external dependencies of a given project
USAGE
$ sfp org dependency install -o <value> -v <value> [--json] [-k <value>] [-r <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-k, --installationkeys=<value> Installation key for key-protected packages (format is packagename:key -->
core:key nCino:key vlocity:key to allow some packages without installation key)
-o, --targetusername=<value> (required) Username or alias of the target org.
-r, --releaseconfig=<value> Path to the config file which determines which external dependency are being
installed based on packages in release config
-v, --targetdevhubusername=<value> (required) Username or alias of the Dev Hub org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Install all the external dependencies of a given project
ALIASES
$ sfp dependency installsfp org dependency shrink
Shrink the dependency list in sfdx-project.json file for each package, remove duplicate dependencies that already exist in its dependent packages
USAGE
$ sfp org dependency shrink -v <value> [--json] [-o] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-o, --overwrite Flag to overwrite existing sfdx-project.json file
-v, --targetdevhubusername=<value> (required) Username or alias of the Dev Hub org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Shrink the dependency list in sfdx-project.json file for each package, remove duplicate dependencies that already
exist in its dependent packages
ALIASES
$ sfp dependency shrinksfp org dev create
Provision a developer with a new admin user in the target org
USAGE
$ sfp org dev create -e <value> -o <value> [--json] [-r] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-e, --email=<value> (required) Email address for the new user.
-o, --requiredUserNameFlag=<value> (required) Username or alias of the target org.
-r, --resetInvokedUser If the user creation fails, reset the password for the invoked user
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Provision a developer with a new admin user in the target org
Start a user create process for a given email address.
ALIASES
$ sfp org create user
$ sfp dev create
EXAMPLES
$ sfp dev:create -o MyOrg -e mymail@gmail.comsfp org dev grant
Grant a developer a specific access level in an environment
USAGE
$ sfp org dev grant --dev <value> -o <value> [--json] [--repository <value>] [-e <value>] [-t <value>]
[--sfp-server-url <value>] [-a <value> | -d] [-f <value> | -c <value>] [--config-name <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-a, --access-level=<value> The access level to be be granted to the developer
-c, --inline-config=<value> Inline JSON configuration (alternative to --dev-config file)
-d, --use-default Use the default access level defined in the configuration,useful for de-elevation
-e, --email=<value> Email address for authenticated user. Ignored if --application-token is provided. Can
be set via SFP_SERVER_USER env var.
-f, --dev-config=<value> [default: config/devconfig.yml] The path to the dev configuration file
-o, --targetorg=<value> (required) Username or alias of the target org.
-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).
--config-name=<value> Name of the stored developer configuration to fetch in server mode (with
--sfp-server-url); defaults to the server default
--dev=<value> (required) The username of the developer
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--repository=<value> The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
for Azure DevOps
--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
Grant a developer a specific access level in an environment
ALIASES
$ sfp dev grantsfp org drift analyze
Analyze metadata drift between a codev mirror checkout and a target Salesforce org.
USAGE
$ sfp org drift analyze --environment <value> [--json] [--repository <value>] [-e <value>] [-t <value>]
[--sfp-server-url <value>] [-o <value>] [--alias <value>] [-b <value>] [--working-dir <value>] [--org-source-dir
<value>] [--packages <value>] [--type-filter <value>...] [--max-components <value>] [--package-concurrency <value>]
[--large-package-threshold <value>] [--source-declared-only] [--ai] [--max-ai-findings <value>] [--provider <value>]
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [-g <value>...]
FLAGS
-b, --branch=<value> Mirror branch to analyze. Defaults to codev/<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.
-o, --targetorg=<value> Username or alias of the target org.
-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).
--[no-]ai Run optional AI review over the mechanical drift candidates.
--alias=<value> Optional aliasfy folder name to use for aliasified metadata and data packages.
Defaults to environment, target org alias, then default.
--environment=<value> (required) Environment name whose codev mirror is being analyzed.
--large-package-threshold=<value> Advanced: source component/file count threshold that switches metadata retrieve
to the large-package adapter. Defaults to 10000.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--max-ai-findings=<value> Skip the AI review when the mechanical candidate count exceeds this threshold
(mass drift). Defaults to 50.
--max-components=<value> Optional maximum number of source-declared components to analyze.
--org-source-dir=<value> Offline org source root to compare against instead of retrieving from
Salesforce. The directory should use the same package paths as
sfdx-project.json.
--package-concurrency=<value> [default: 10] Number of packages to retrieve from the org in parallel.
--packages=<value> Optional comma-separated package names to analyze.
--provider=<value> AI provider id (for --ai). Defaults to server integration or provider
environment credentials.
--repository=<value> The repository identifier. E.g `owner/repo` for GitHub/GitLab or
`org/project/repo` for Azure DevOps
--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
--[no-]source-declared-only Retrieve only metadata components declared by the codev mirror source surface.
--type-filter=<value>... Optional Salesforce metadata type filter. Can be provided multiple times.
--working-dir=<value> Directory where source/org materializations and .org-drift-analysis artifacts
are written.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Analyze metadata drift between a codev mirror checkout and a target Salesforce org.
EXAMPLES
$ sfp org drift analyze --targetorg my-org --environment prod --branch codev/prod --json
$ sfp org drift analyze --org-source-dir ../offline-org-source --environment prod --json
$ sfp org drift analyze -o my-org --environment stagingsfp org flow activate
Activate the flow on a target org
USAGE
$ sfp org flow activate -o <value> [--json] [-f <value>] [-p <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-f, --developername=<value> The developer name of the flow
-o, --targetorg=<value> (required) Username or alias of the target org.
-p, --namespaceprefix=<value> Use to specify a specific namespace prefix
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Activate the flow on a target org
ALIASES
$ sfp flow activatesfp org flow cleanup
Cleanup inactive flows on a target org
USAGE
$ sfp org flow cleanup -o <value> [--json] [-f <value>] [-p <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-f, --developername=<value> The developer name of the flow
-o, --targetorg=<value> (required) Username or alias of the target org.
-p, --namespaceprefix=<value> Use to specify a specific namespace prefix
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Cleanup inactive flows on a target org
ALIASES
$ sfp flow cleanupsfp org flow deactivate
Deactivate the flow on a target org
USAGE
$ sfp org flow deactivate -o <value> [--json] [-f <value>] [-p <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-f, --developername=<value> The developer name of the flow
-o, --targetorg=<value> (required) Username or alias of the target org.
-p, --namespaceprefix=<value> Use to specify a specific namespace prefix
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deactivate the flow on a target org
ALIASES
$ sfp flow deactivatesfp org list
List all Salesforce orgs available locally and optionally from server
USAGE
$ sfp org list [--json] [--repository <value>] [-e <value>] [-t <value>] [--sfp-server-url <value>] [-g
<value>...] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [--type
devhub|scratch|sandbox|other] [--all] [--clean] [--server-only | --local-only] [--include-auth-url]
FLAGS
-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.
-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).
--all Include expired and deleted scratch orgs
--clean Remove authorizations for inactive orgs
--include-auth-url Include sfdxAuthUrl in the output (requires owner role on server)
--local-only Show only local orgs (excludes server orgs even when server flags provided)
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--repository=<value> The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
for Azure DevOps
--server-only Show only orgs registered on the server (excludes local orgs)
--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
--type=<option> Filter organizations by type (devhub, scratch, sandbox, other)
<options: devhub|scratch|sandbox|other>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
List all Salesforce orgs available locally and optionally from server
EXAMPLES
$ sfp org list
$ sfp org list --all
$ sfp org list --type devhub
$ sfp org list --sfp-server-url <server-url> --email admin@example.com
$ sfp org list --sfp-server-url <server-url> --email admin@example.com --server-only
$ sfp org list --sfp-server-url <server-url> --email admin@example.com --local-only
$ sfp org list --cleansfp org login
Authenticate to an org using auth url either from a file or from sfp server,
USAGE
$ sfp org login [--json] [-f <value>] [-u <value>] [--access-token <value> --instance-url <value>] [-o
<value> --server] [--default-devhub ] [--repository <value>] [-e <value>] [-t <value>] [--sfp-server-url <value>]
[-d] [-s] [-w] [-a <value>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-a, --alias=<value> Alias for the org.
-d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
-e, --email=<value> Email address for authenticated user. Ignored if --application-token is provided. Can
be set via SFP_SERVER_USER env var.
-f, --url-file=<value> Path to a file that contains the Salesforce DX authorization URL.
-o, --username=<value> The username of the org to be fetched from the server, when server mode is used
-s, --set-default Set the authenticated org as the default that all org-related commands run against.
-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).
-u, --url-stdin=<value> Specify '-' as this flag's value to pipe the Salesforce DX authorization URL through
standard input (stdin).
-w, --write-file Write the results of the org into org_details.json, Please note this is sensitive and
contains access token, so please
ensure it is deleted
--access-token=<value> Salesforce access token for direct authentication. Use this with --instance-url to
authenticate using a pre-generated access token instead of an sfdxAuthUrl.
--default-devhub Fetch the default DevHub from the server instead of specifying a username
--instance-url=<value> Salesforce instance URL (e.g., https://mycompany.my.salesforce.com). Required when
using --access-token.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--repository=<value> Select the repository default when using --server --default-devhub (explicit opt-in)
--server Fetch authentication URL from the sfp server
--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
Authenticate to an org using auth url either from a file or from sfp server,
he sf authorization URL must have the format "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>". NOTE:
The SFDX authorization URL uses the "force" protocol, and not "http" or "https". Also, the "instanceUrl" inside the
SFDX authorization URL doesn't include the protocol ("https://").
You have two options when creating the authorization file.
You can create a JSON file that has a top-level property named sfdxAuthUrl whose value is the authorization URL.
Finally, you can create a normal text file that includes just the URL and nothing else.
The resulting JSON file contains the URL in the "sfdxAuthUrl" property of the "result" object. You can then reference
the file when running this command:
$ sfp org:login:url --url-file authFile.json
Alternatively, you can pipe the SFDX authorization URL through standard input by using the --url-stdin flag and
providing the '-' character as the value.
ALIASES
$ sfp org login url
EXAMPLES
$ sfp org login --url-file files/authFile.json
$ sfp org login --access-token <token> --instance-url https://myorg.my.salesforce.com --alias myorg
$ sfp org login --server --username user@example.com --sfp-server-url <url> --email admin@example.com
$ sfp org login --server --default-devhub --sfp-server-url <url> --email admin@example.comsfp org open
Open your default scratch org, or another specified org, in a browser.
USAGE
$ sfp org open -o <value> [--json] [--private | -b chrome|edge|firefox] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-b, --browser=<option> Browser where the org opens. (chrome, edge, firefox)
Default is the standard browser.
<options: chrome|edge|firefox>
-o, --targetusername=<value> (required) Username or alias of the target org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--private Open the org in the default browser using private (incognito) mode.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Open your default scratch org, or another specified org, in a browser.
EXAMPLES
$ sfp org:open -o myTargetOrgsfp org profile merge
Merge changes made in the profile directly in the org to the profile files in the local project
USAGE
$ sfp org profile merge -o <value> [--json] [-f <value>...] [-n <value>...] [-m <value>...] [-d] [--apiversion
<value>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-d, --delete set this flag to delete profile files that does not exist in the org.
-f, --folder=<value>... comma separated list of folders to scan for profiles. If ommited, the folders in the
packageDirectories configuration will be used.
-m, --metadata=<value>... comma separated list of metadata for which the permissions will be retrieved.
-n, --profilelist=<value>... comma separated list of profiles. If ommited, all the profiles found in the folder(s)
will be merged
-o, --targetorg=<value> (required) Username or alias of the target org.
--apiversion=<value> Override the api version used for api requests made by this command
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Merge changes made in the profile directly in the org to the profile files in the local project
ALIASES
$ sfp profile merge
EXAMPLES
$ sfp profile:merge -o sandbox
$ sfp profile:merge -f force-app -n "My Profile" -u sandbox
$ sfp profile:merge -f "module1, module2, module3" -n "My Profile1, My profile2" -u sandboxsfp org profile reconcile
Reconcile profiles in the local directory only with the attributes that are available in the target org
USAGE
$ sfp org profile reconcile -o <value> [--json] [-f <value>...] [-n <value>...] [-d <value>] [-s] [--apiversion <value>]
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-d, --destfolder=<value> the destination folder for reconciled profiles, if omitted existing profiles will be
reconciled and will be rewritten in the current location
-f, --folder=<value>... path to the folder which contains the profiles to be reconciled,if project contain
multiple package directories, please provide a comma seperated list, if omitted, all the
package directories will be checked for profiles
-n, --profilelist=<value>... list of profiles to be reconciled. If ommited, all the profiles components will be
reconciled.
-o, --targetorg=<value> (required) Username or alias of the target org.
-s, --sourceonly set this flag to reconcile profiles only against component available in the project
only. Configure ignored perissions in sfdx-project.json file in the array
plugins->sfpowerkit->ignoredPermissions.
--apiversion=<value> Override the api version used for api requests made by this command
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Reconcile profiles in the local directory only with the attributes that are available in the target org
ALIASES
$ sfp profile reconcile
EXAMPLES
$ sfp profile:reconcile --folder force-app -d destfolder -s
$ sfp profile:reconcile --folder force-app,module2,module3 -o sandbox -d destfolder
$ sfp profile:reconcile -o myscratchorg -d destfoldersfp org profile retrieve
Retrieve profiles from the salesforce org with all its associated permissions. Common use case for this command is to migrate profile changes from a integration environment to other higher environments [overcomes SFDX CLI Profile retrieve issue where it doesnt fetch the full profile unless the entire metadata is present in source], or retrieving profiles from production to lower environments for testing.
USAGE
$ sfp org profile retrieve -o <value> [--json] [-f <value>...] [-n <value>...] [-d] [--apiversion <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-d, --delete set this flag to delete profile files that does not exist in the org, when retrieving in
bulk
-f, --folder=<value>... retrieve only updated versions of profiles found in this directory, If ignored, all
profiles will be retrieved.
-n, --profilelist=<value>... comma separated list of profiles to be retrieved. Use it for selectively retrieving an
existing profile or retrieving a new profile
-o, --targetorg=<value> (required) Username or alias of the target org.
--apiversion=<value> Override the api version used for api requests made by this command
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Retrieve profiles from the salesforce org with all its associated permissions. Common use case for this command is to
migrate profile changes from a integration environment to other higher environments [overcomes SFDX CLI Profile
retrieve issue where it doesnt fetch the full profile unless the entire metadata is present in source], or retrieving
profiles from production to lower environments for testing.
ALIASES
$ sfp profile retrieve
EXAMPLES
$ sfp profile:retrieve -o prod
$ sfp profile:retrieve -f force-app -n "My Profile" -o prod
$ sfp profile:retrieve -f "module1, module2, module3" -n "My Profile1, My profile2" -o prodsfp org retrieve by-name
Retrieve metadata from a Salesforce org by type and name.
USAGE
$ sfp org retrieve by-name -m <value> -n <value> -o <value> [--json] [--repository <value>] [-e <value>] [-t <value>]
[--sfp-server-url <value>] [-d <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-d, --output-dir=<value> Directory to write retrieved files to. Defaults to current directory.
-e, --email=<value> Email address for authenticated user. Ignored if --application-token is provided. Can
be set via SFP_SERVER_USER env var.
-m, --metadata-type=<value> (required) Salesforce metadata type to retrieve (e.g., ApexClass, CustomObject,
LightningComponentBundle).
-n, --member-name=<value> (required) Name of the metadata component to retrieve.
-o, --targetusername=<value> (required) Username or alias of the target org.
-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).
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--repository=<value> The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
for Azure DevOps
--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
Retrieve metadata from a Salesforce org by type and name.
ALIASES
$ sfp retrieve by-name
$ sfp retrieve
EXAMPLES
$ sfp org retrieve by-name -m ApexClass -n MyController -o myOrg
$ sfp org retrieve by-name -m CustomObject -n Account -o myOrg --output-dir /tmp/retrieve
$ sfp org retrieve by-name -m ApexClass -n MyController -o myOrg --jsonsfp org retrieve metadata
Discover and retrieve all metadata from a Salesforce org. Describes types, lists components, then retrieves source files in bulk.
USAGE
$ sfp org retrieve metadata -o <value> [--json] [--repository <value>] [-e <value>] [-t <value>] [--sfp-server-url
<value>] [--type-filter <value>] [-d <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-d, --output-dir=<value> Directory to write retrieved files to.
-e, --email=<value> Email address for authenticated user. Ignored if --application-token is provided. Can
be set via SFP_SERVER_USER env var.
-o, --targetusername=<value> (required) Username or alias of the target org.
-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).
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--repository=<value> The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
for Azure DevOps
--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
--type-filter=<value> Comma-separated list of metadata types to limit the sync (e.g.,
ApexClass,ApexTrigger).
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Discover and retrieve all metadata from a Salesforce org. Describes types, lists components, then retrieves source
files in bulk.
EXAMPLES
$ sfp org retrieve metadata -o myOrg
$ sfp org retrieve metadata -o myOrg --type-filter ApexClass,ApexTrigger
$ sfp org retrieve metadata -o myOrg --output-dir /tmp/metadata --jsonsfp org user deactivate
Deactivate users for an org.
USAGE
$ sfp org user deactivate -o <value> [--json] [-a <value>] [-e <value>] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-a, --alias=<value> Alias for a specific user to deactivate.
-e, --exclude=<value> Exclude usernames from deactivation.
-o, --requiredUserNameFlag=<value> (required) Username or alias of the target org.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deactivate users for an org.
Set for all users the status inactive.
ALIASES
$ sfp user deactivate
EXAMPLES
$ sfp user:deactivate -o MyOrgsfp org user freeze
Freeze users for an org.
USAGE
$ sfp org user freeze -p <value> -o <value> [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-o, --targetusername=<value> (required) Username or alias of the target org.
-p, --profiles=<value> (required) A list of profiles to freeze the users. Excludes "System Administrator".
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Freeze users for an org.
Set for all given profiles and login users the status "IsFrozen".
ALIASES
$ sfp user freeze
EXAMPLES
$ sfp user:freeze -p "Base Profile" -o MyOrgsfp org user provision
Provision users with scoped access into a Salesforce org.
USAGE
$ sfp org user provision --users <value> --access-config <value> -o <value> [--json] [--idempotency-key <value>]
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-o, --targetorg=<value> (required) Username or alias of the target org.
--access-config=<value> (required) Inline JSON containing the full developer configuration block.
--idempotency-key=<value> Stable operation key used to safely resume a retried provisioning task.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--users=<value> (required) JSON array of users with email, accessLevel, and sendPasswordReset.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Provision users with scoped access into a Salesforce org.
EXAMPLES
$ sfp org user provision --users '[{"email":"dev@example.com","accessLevel":"developer","sendPasswordReset":true}]' --access-config '{"accessLevels":{"developer":{"profile":"Standard User"}}}' -o my-orgsfp org user unfreeze
Unfreeze users for an org.
USAGE
$ sfp org user unfreeze -p <value> -o <value> [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-o, --targetusername=<value> (required) Username or alias of the target org.
-p, --profiles=<value> (required) A list of profiles to unfreeze the users.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Unfreeze users for an org.
Set for all given profiles and login users the status "IsFrozen" to false.
ALIASES
$ sfp user unfreeze
EXAMPLES
$ sfp user:unfreeze -p "Base Profile" -o MyOrg