zorg commands
  • 06 Nov 2024
  • 1 Minute to read
  • Dark
    Light

zorg commands

  • Dark
    Light

Article summary

Use zorg commands to work with your ZOrgs.

Commands

CommandDescription
zorg:listLists all ZOrgs you've signed in to from this computer.
zorg:loginObtains an OAuth token to work with a ZOrg.
zorg:logoutDeactivates the OAuth token for a ZOrg.
Tips
  • Run the zdx commands command to list all supported commands.
  • All Zilliant CLI commands support the --help parameter. Run a command with this parameter for a description and list of supported parameters.

zdx zorg:list

Lists all ZOrgs you've signed into from this computer and indicates whether their OAuth tokens are still valid.

Parameters

None.


zdx zorg:login

Obtains an OAuth token from Salesforce to work with your ZOrg. The token is valid for up to 8 hours.

Parameters

  • -c | --client-id (Required.) Client ID of the connected authorization app in Salesforce.
  • -s | --client-secret (Required.) Client secret of the connected authorization app in Salesforce.
  • -t | --is-sandbox (Optional.) Boolean to define whether your ZOrg is a test or sandbox org. The default value is false.
  • -z | --zorg-id (Required.) ZOrg ID.
Note

Contact your Zilliant representative to get the client ID, client secret, and ZOrg ID.

The command output includes a URL and a code to proceed with obtaining a token. For details, refer to Sign in to ZOrgs.

Example

PS C:\Users\username> zdx zorg:login -c clientID -s OAuthSecret -z ZorgID
Please enter 'code' on the Salesforce page that opened or navigate to URL and enter it there. It should have been automatically copied to your clipboard.

zdx zorg:logout

Deactivates the OAuth token for a ZOrg.

Parameters

-z | --zorg-id (Required.) ID of the ZOrg for which you want to deactivate the OAuth token.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.