11---
22layout : page
3- title : Install and Configure the CLI
3+ title : Install and Configure the SD2E CLI
44tagline :
55---
66
7- The primary method for interacting with the SD2E platform is the
8- [ Agave command line interface (CLI)] ( https://agaveapi.co/ ) .
9- The CLI is a collection of ~ 150 shell scripts for managing
10- authorization, files, systems, applications, jobs, and more.
7+ The primary method for interacting with the SD2E platform is the
8+ [ SD2E command line interface (CLI)] ( https://github.com/SD2E/sd2e-cli ) .
9+ The SD2E CLI is a collection of several other CLIs including Agave, Abaco,
10+ TACCLab, and TACCReg. In total, they comprise ~ 150 shell scripts and other
11+ resources for managing authorization, files, systems, applications, jobs, and
12+ more.
1113
12- There are three methods to install the CLI:
14+ There are three methods to install the CLI, choose whichever fits your preferred
15+ working environment:
13161 . Run an installer script to install in ~ /sd2e-cloud-cli/bin/
14172 . Manual install to a location of your choosing
15183 . Pull a CLI Docker image
1619
1720<br >
18- #### Run an installer script to install in ~ /sd2e-cloud-cli/bin/
21+ #### Requirements
22+
23+ Make sure in your environment, you have:
24+ 1 . [ Bash] ( https://www.gnu.org/software/bash/ )
25+ 2 . [ cURL] ( https://curl.haxx.se/ )
26+ 3 . [ Git] ( https://git-scm.com/ )
27+ 4 . [ Docker] ( https://www.docker.com/get-docker )
28+ 5 . [ jq] ( https://stedolan.github.io/jq/ )
29+ 6 . [ python 2.7+ or 3.x+] ( https://www.python.org/downloads/ )
30+
31+ <br >
32+ #### Install method 1: Run an installer script to install in ` ~/sd2e-cloud-cli/bin/ `
1933
2034Open a terminal window and run the installer script:
2135```
@@ -41,7 +55,7 @@ TACC Cloud API versions:
4155```
4256
4357<br >
44- #### Manual install to a location of your choosing
58+ #### Install method 2: Manual install to a location of your choosing
4559
4660Open a terminal window and navigate to your preferred location for installation:
4761
@@ -51,7 +65,8 @@ Open a terminal window and navigate to your preferred location for installation:
5165
5266Download and unpack the CLI:
5367```
54- % curl -L https://raw.githubusercontent.com/sd2e/sd2e-cli/master/sd2e-cloud-cli.tgz -o sd2e-cloud-cli.tgz
68+ % curl -L https://raw.githubusercontent.com/sd2e/sd2e-cli/master/sd2e-cloud-cli.tgz \
69+ -o sd2e-cloud-cli.tgz
5570% tar -xvzf sd2e-cloud-cli.tgz
5671```
5772
@@ -74,7 +89,7 @@ TACC Cloud API versions:
7489```
7590
7691<br >
77- #### Pull a CLI Docker image
92+ #### Install method 3: Pull a CLI Docker image * (outdated) *
7893
7994The CLI is also available as a Docker image. For this to work, it is assumed you
8095have a reasonably recent version of [ Docker] ( https://www.docker.com/ ) installed.
@@ -99,15 +114,23 @@ TACC Cloud API versions:
99114<br >
100115#### Influential environment variables
101116
117+ When working with the SD2E platform, you may optionally set some of the following
118+ environment variables. In bash, it will take the form:
119+ ```
120+ % export VAR_NAME=option
121+ e.g.
122+ % export AGAVE_JSON_PARSER=jq
123+ ```
124+
102125<table style =" width :100% " border =" 1px " cellpadding =" 5 " >
103126 <tr >
104- <th align="left">environment variable</th>
105- <th align="left">options </th>
106- <th align="left">description </th>
127+ <th align="left">Environment variable</th>
128+ <th align="left">Options </th>
129+ <th align="left">Description </th>
107130 </tr >
108131 <tr >
109132 <td>AGAVE_JSON_PARSER</td>
110- <td>json_mirror, jq , json, python, native</td>
133+ <td>jq, json_mirror , json, python, native</td>
111134 <td>Set this to your favorite json parser (if installed)</td>
112135 <tr >
113136 </tr >
0 commit comments