Forrest logo
back to the sfdx tool

sfdx:tldr:5b145

sfdx: Display information about a specific organization.
$ sfdx force:org:display --targetusername ${organization}
try on your machine

This command is used with the Salesforce CLI (Command Line Interface) and is used to display information about a particular Salesforce org.

Here is a breakdown of the command:

  • sfdx is the keyword used to initiate a command with the Salesforce CLI.
  • force:org:display is the specific command that displays information about a Salesforce org.
  • --targetusername is an argument used to specify the username or org alias of the org that you want to display information for. In this case, ${organization} is used to refer to a variable that holds the value of the target username or org alias.
    • Note: The ${organization} is most likely a placeholder that should be replaced with an actual username or org alias.

When you run this command with a valid target username or org alias, it will fetch and display information about that particular org, such as the org ID, alias, username, expiration date, default org status, etc.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sfdx tool