org Commands
Commands to create and manage orgs and scratch org users.
- org assign permset
Assign a permission set to one or more org users. - org assign permsetlicense
Assign a permission set license to one or more org users. - org auth show-access-token
Show the current access token for an org. - org auth show-sfdx-auth-url
Show the SFDX Auth URL for an org. - org auth show-user-password
Show the stored password for an org’s user. - org create agent-user
Create the default Salesforce user that is used to run an agent. - org create sandbox
Create a sandbox org. - org create scratch
Create a scratch org. - org create shape
Create a scratch org configuration (shape) based on the specified source org. - org create snapshot
Create a snapshot of a scratch org. - org create user
Create a user for a scratch org. - org delete sandbox
Delete a sandbox. - org delete scratch
Delete a scratch org. - org delete shape
Delete all org shapes for a target org. - org delete snapshot
Delete a scratch org snapshot. - org disable tracking
Prevent Salesforce CLI from tracking changes in your source files between your project and an org. - org display
Display information about an org. - org display user
Display information about a Salesforce user. - org enable tracking
Allow Salesforce CLI to track changes in your source files between your project and an org. - org generate password
Generate a random password for scratch org users. - org get snapshot
Get details about a scratch org snapshot. - org list
List all orgs you’ve created or authenticated to. - org list auth
List authorization information about the orgs you created or logged into. - org list limits
Display information about limits in your org. - org list metadata
List the metadata components and properties of a specified type. - org list metadata-types
Display details about the metadata types that are enabled for your org. - org list shape
List all org shapes you’ve created. - org list snapshot
List scratch org snapshots. - org list sobject record-counts
Display record counts for the specified standard or custom objects. - org list users
List all locally-authenticated users of an org. - org login access-token
Authorize an org using an existing Salesforce access token. - org login jwt
Log in to a Salesforce org using a JSON web token (JWT). - org login sfdx-url
Authorize an org using a Salesforce DX authorization URL stored in a file or through standard input (stdin). - org login web
Log in to a Salesforce org using the web server flow. - org logout
Log out of a Salesforce org. - org open
Open your default scratch org, or another specified org, in a browser. - org open agent
Open an agent in your org’s Agentforce Builder UI in a browser. - org open authoring-bundle
Open your org in Agentforce Studio, specifically in the list view showing the list of agents. - org refresh sandbox
Refresh a sandbox org using the sandbox name. - org resume sandbox
Check the status of a sandbox creation, and log in to it if it’s ready. - org resume scratch
Resume the creation of an incomplete scratch org.