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
To log in using your username and password with the CLI:
-
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.
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.
To login using an OAuth Token with the CLI:
- 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.
-
From the command line, enter the
tibcli authorize
command:tibcli authorize
- You are prompted for the access token.
- 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.