Gopher CLI Commands
This document provides the commands, their arguments, and options, to interface with the GopherSecurity via CLI. Commands can be executed from a shell application on any OS and from any directory within the OS.
gopher -h
Where -h and --h are "help" arguments.
Use this command to display all available Gopher commands, arguments and options.
gopher -h
gopher COMMAND [args...] {OPTIONS}
OPTIONS:
--dump=[dump]
--use=[use]
--connect=[connect]
--disconnect=[disconnect]
--stats=[stats]
--trace=[trace]
--node-id=[node-id]
--ipv4=[ipv4]
--ipv6=[ipv6]
arguments
-h, --help Help
args... The command's arguments if needed
login gopher login
loginkey gopher loginkey <access_key_id>
logout gopher logout
list gopher list
connect gopher connect
<network-index|network-id|network-name>
disconnect gopher disconnect
<network-index|network-id|network-name>
status Print current session status
version gopher version
emailcode gopher emailcode
smscode gopher smscode
clearproxy Clear OS proxy settings
node gopher node --dump <node-id>
team gopher team list|--use
<team-index|team-id|team-email>
user gopher user list|add|--use
<user-index|user-id|user-email>
net gopher net list
gopher net --connect
<network-index|network-id|network-name>
gopher net --disconnect
<network-index|network-id|network-name>
gopher net --stats
<network-index|network-id|network-name>
gopher net --dump <network-id>
gopher net
--trace
<network-index|network-id|network-name>
--node-id <node-id>
--ipv4 <ipv4>
--ipv6 <ipv6>
"--" can be used to terminate flag options and force all following
arguments to be treated as positional optionsUse -h or --h to get help for a specific command.
Example:
gopher login
To login to the GopherSecurity CLI with username and password, use the following command:
The output prompts for the following:
gopher loginkey
To login to the GopherSecurity CLI with a login key, use the following command replacing the <accessKeyId> parameter with the actual key ID.
gopher logout
Logs the current user, if multiple, out of their Gopher Team, then auto switch another user account, if multiple.
gopher status
Used to get the user ID of the current logged in user, and displays any Gopher Network(s) that have a status of "connected".
gopher version
Displays the version of GopherSecurity CLI running on the device.
gopher smscode
To enter an SMS generated MFA code, use the following command, replacing the <code> parameter with the actual authentication code:
gopher emailcode
To enter an email generated MFA code, use the following command, replacing the <emailcode> parameter with the actual authentication code:
Upon successful login, GopherSecurity displays the Team the user is currently logged in to, along with the Team list for the logged in user.
gopher clearproxy
Clears proxy settings in the OS that Gopher may have set after connecting to a Gopher network.
Example of command and output:
gopher node --dump
gopher node --dump <node-id>
Use this command to get detailed information about the Gopher node.
gopher user list
Displays the user (including user-index, user-id and user-email) instances that have authenticated to the GopherSecurity CLI and indicates which account the user is currently signed in with.
Example:
gopher user add
Used to login with a different user account that has already been created in the Gopher dashboard, and switches that user to the current logged in user. Follow the prompts to login.
Example:
gopher user --use
Used to switch to a different user
Example:
gopher team list
Displays the Team list for the logged in user as well as any other teams which the user has signed into from the GopherSecurity CLI. The team list includes the teamId and team-email parameters, and shows which team the user is currently logged in to with the following output:
gopher team --use
gopher team -use <team-id|team-index|team-email>
Used to switch Gopher teams
In the following example, the <team-id> is used to specify the team.
If the command is successful, the output will display the new Team email address and Team list.
gopher net list
Displays the network-id and network-name for all networks for the team the user is currently logged in to, and specifies the network(s) the user is currently connected to.
Example:
gopher net --connect
gopher net --connect <network-id|network-index|network-name>
Used to connect to a Gopher network.
If the connection is successful, the following output will be displayed:
gopher net --disconnect
gopher net --disconnect <network-id|network-index|network-name>
This command is used to disconnect from a Gopher network. In the following example, the <network-id> is used to identify the network:
gopher net --stats
gopher net --stats <network-id|network-index|network-name>
gopher net --dump
gopher net --dump <network-id>
Used to get detailed information about the local node and Gopher network the user has connected to.
gopher net --trace
gopher net --trace <network-id|network-index|network-name> --node-id|--ipv4|--ipv6
Used to trace the route to another node in the same Gopher network that the user is connected to.
Example:
Last updated