CLI Menu

Command Line Interface (CLI) CLI QuickStart GuideCommand Line Interface (CLI) ExamplesUsing the CLI with High Assurance Resources

NAME

globus endpoint local-id - Display UUID of locally installed endpoint

SYNOPSIS

globus endpoint local-id [OPTIONS]

DESCRIPTION

The globus endpoint local-id command looks for data referring to a local installation of Globus Connect software and displays the associated endpoint ID.

This command only supports Globus Connect Personal for now.

It operates by looking for Globus Connect Personal data in the current user’s home directory.

OPTIONS

--personal

Use local Globus Connect Personal endpoint (default).

--map-http-status TEXT

Map non success HTTP response codes to exit codes other than 1. e.g. "--map-http-satus 403=0,404=0" would exit with 0 even if a 403 or 404 http error code was received. Valid exit codes are 0,1,50-99.

-F, --format [json|text]

Set the output format for stdout. Defaults to "text".

--jq, --jmespath EXPR

Supply a JMESPath expression to apply to json output. Takes precedence over any specified --format and forces the format to be json processed by this expression.

A full specification of the JMESPath language for querying JSON structures may be found at https://jmespath.org/

-h, --help

Show help text for this command.

-v, --verbose

Control the level of output.

Use -v or --verbose to show warnings and any additional text output.

Use -vv to add informative logging.

Use -vvv to add debug logging and full stack on any errors. (equivalent to -v --debug)

EXAMPLES

Do a Globus ls command on the current local endpoint.

$ globus ls "$(globus endpoint local-id)"':/~/'

On the assumption that the default directory for Globus Connect Personal is the user’s homedir, list files in the current working directory via Globus:

#!/bin/bash
# NOTE: this script only works in subdirs of $HOME

if [[ $PWD/ != $HOME/* ]]; then
  echo "Only works in homedir" >&2
  exit 1
fi

# get the CWD as a path relative to the homedir
dir_to_ls=${PWD/#$HOME/'~'}

ep_id="$(globus endpoint local-id)"

globus ls "${ep_id}:/${dir_to_ls}"

EXIT STATUS

0 on success.

1 if an error occurred

2 if the command was used improperly.


© 2010- The University of Chicago Legal