Before you can use the Globus CLI on a given computer, you must log in to Globus using the globus login command on that computer. The command will print a URL (similar to the one below) in the shell:

$ globus login
Please authenticate with Globus here:
---------------------------
https://auth.globus.org/v2/oauth2/authorize?code_challenge=0dlql_6KJbguIncy3-NH
0w8oBOXABa7DqvZ2O2K4bGs&state=_default&redirect_uri=https%3A%2F%2Fauth.globus.o
rg%2Fv2%2Fweb%2Fauth-code&prefill_named_grant=login3.stampede2.tacc.utexas.edu&
response_type=code&client_id=95fdeba8-fac2-42bd-a357-e068d82ff78e&scope=openid+
profile+email+urn%3Aglobus%3Aauth%3Ascope%3Atransfer.api.globus.org%3Aall&code_
challenge_method=S256&access_type=offline
---------------------------

Enter the resulting Authorization Code here:
Shell session

Copy the URL from the shell and visit that web page in a web browser on any computer. If you are not currently logged in to Globus on that computer, you will be asked to log in at this time. You may log in with your Globus ID or an ID from any organization. Some organizational logins will also require you to provide dual-factor authentication.

A screen shot of the Globus login web page with an organization selected in the dropdown.
A screen shot of the Globus login web page with an organization selected in the dropdown.

Once you are logged in (or if you were already logged in), you will be asked to consent to the Globus CLI having access to your information.

a screen shot of the Globus consent web page.
a screen shot of the Globus consent web page.

After reviewing the information, click Allow. You will be taken to a page where a "Native App Authorization Code" is displayed. Copy the code (similar to the one below) to your computer's clipboard.

A screen shot of the Globus web page displaying a Native App Authorization Code
A screen shot of the Globus web page displaying a Native App Authorization Code.

Paste the authorization code into the shell where you ran the "globus login" command, as a response to its prompt.

Enter the resulting Authorization Code here: 1zIOeE6leaZpnk0Fxfmi1J8UauARmF

You have successfully logged in to the Globus CLI as johnqpublic@globusid.org

You can always check your current identity with
  globus whoami

Logout of the Globus CLI with
  globus logout
Shell session

You will now be able to issue Globus CLI commands on this computer. You can check your Globus login status at any time with the command globus whoami.

 
© 2025  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Access Statement