/
How-to: Install Globus CLI

How-to: Install Globus CLI

What is Globus CLI?

Globus CLI allows you to programmatically transfer files. Globus CLI is installed on Talapas login nodes and accessed by running:

[marka@login2 ~]$ module load globus

 

You can also install Globus CLI on your laptop of lab server for use with Globus Personal Connect.

Below are instructions for installing on a Mac:

 

Install Globus CLI

pip install --upgrade --user globus-cli

 

Globus CLI examples 

Globus Login

After running globus login in your terminal window, you will be directed to a web page to login with your UO credentials.

Marks-MacBook-Pro:~ marka$ globus login You are running 'globus login', which should automatically open a browser window for you to login. If this fails or you experience difficulty, try 'globus login --no-local-server' --- You have successfully logged in to the Globus CLI! You can check your primary identity with globus whoami For information on which of your identities are in session use globus session show Logout of the Globus CLI with globus logout Marks-MacBook-Pro:~ marka$ globus whoami marka@uoregon.edu Marks-MacBook-Pro:~ marka$ globus get-identities 'marka@uoregon.edu' c7108429-4afb-44b0-9957-e28e56bdf396

 

List available commands

globus list-commands

 

Search for a Globus endpoint

Marks-MacBook-Pro:~ marka$ globus endpoint search Talapas ID | Owner | Display Name ------------------------------------ | ------------------------------------------------------------ | --------------- b4221f50-6dc5-11e9-bf46-0e4a062367b8 | uoregon@globusid.org | Talapas

 

Search for a Globus endpoint with filter

 

Display information about the Talapas endpoint

 

Activate/Authenticate against an endpoint

You will be directed to a web page to login with your UO credentials. Click 'Advanced' to enter credential lifetime.

Transfer file from one endpoint to another

For example, transfer a directory on my local macbook endpoint to an endpoint I've created on Talapas.

Note: A destination directory name is required. Also, $dest_ep has a 'Host Path' of /projects/hpcrcf/marka/testing/ this is not visible in the CLI command ouput 'globus endpoint show $dest_ep'

 

View tasks

globus task list

View only active tasks

globus task list --filter-status ACTIVE

 

Show details of a task

Related content

How-to: Install Globus Connect Personal
How-to: Install Globus Connect Personal
More like this
How-to: Use Globus CLI on Talapas
How-to: Use Globus CLI on Talapas
More like this
How-to: Transfer files between Globus endpoints
How-to: Transfer files between Globus endpoints
More like this
How-to: Login to the Talapas Globus endpoint
How-to: Login to the Talapas Globus endpoint
Read with this
How-to: Enable Globus Plus
How-to: Enable Globus Plus
Read with this