Logging In with the TIBCO Cloud™ - Command Line Interface

Before using any TIBCO Cloud™ - Command Line Interface (CLI) commands, you must first log in to the TIBCO Cloud™ Integration server. You can login either with your username and password or using an OAuth Token.

The CLI executable comes with the username (email address) and server preconfigured for the user who downloaded the CLI package.

Username/Password Login

Note: If you are currently logged into the CLI using an OAuth Token, you must first log out before you can use a username and password to login. See Logging out with the TIBCO Cloud™ - Command Line Interface.

To log in using your username and password with the CLI:

  1. From the command line, enter the tibcli login command:
    tibcli login 
    

You are prompted with the predefined username. You can optionally enter another username at the prompt. Enter your password for the email shown in the login prompt.

You can also use the -p argument to specify a password, or specify a different username with the -u argument. After your first login, the CLI remembers the username for each successive login until you log out or log in with a different username.

If you are part of multiple organizations and subscriptions, you can specify the organization name with the --org or -o argument. Upon successful login, you can access the apps from that organization. If the organization name contains spaces or an apostrophe, the value must be contained in double quotes. If you are part of organizations with multiple regions, you can specify the organization name with the --org or -o argument and the region with the --region or -r argument. If you specify no argument, upon successful login, a list of all organizations to which your account belongs is shown.

To change organizations, log out and then log in specifying the new organization.

Note: If you make changes to user roles in TIBCO Cloud, you must log out and log back in for changes to take effect.

OAuth Token Login

The CLI uses OAuth 2.0 authorization with a Bearer Token. The OAuth token is associated directly with the organization you were in when you generated the token.

Note: If you are currently logged into the CLI using a username and password, you must first log out before you can use an OAuth token to login. See Logging out with the TIBCO Cloud™ - Command Line Interface.

To login using an OAuth Token with the CLI:

  1. First you must generate an OAuth Token for your organization. If you are a member of multiple organizations, you must generate a separate token for each organization. See OAuth Access Tokens for information on generating a token for your organization.
  2. From the command line, enter the tibcli authorize command:
    tibcli authorize 
    
  3. You are prompted for the access token.
  4. Enter your token at the prompt.

You can also use the -t argument to specify the token in the authorize command. The session expires after 30 minutes. Use the authorize command with your token again to reauthorize.

Related Topics

Registering a TIBCO Cloud™ Integration Account

TIBCO Cloud™ - Command Line Interface Reference