GopherSecurity 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.
When signed in to the GopherSecurity CLI as "root" admin, all Gopher networks configured in the Gopher dashboard Team instance for that root admin are automatically imported to the GopherSecurity CLI.
gopher -h
Where -h and --h are "help" arguments.
Use this command to display all available Gopher commands, arguments and options.
Use -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
A login key is a Gopher system generated key that can be used to login to multiple Gopher instances deployed on multiple servers. Good for massive deployment using toolset like Ansible.
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
Only required for user accounts that the Gopher admin has enabled MFA using SMS for authentication.
To enter an SMS generated MFA code, use the following command, replacing the <code> parameter with the actual authentication code:
gopher emailcode
Only required for user accounts that the Gopher admin has enabled MFA using email for authentication.
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.
The Team list will populate with additional teams each time the user signs into a different team. (See commands "gopher team list" and "gopher team --use".)
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>
A Gopher node is a TUN/IP instance that is created after connecting to a Gopher network. (Refer to the command gopher net --dump to get the 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:
One person can have multiple user accounts, which are very convenient to work across teams and/or organizations.
gopher user --use
Used to switch to a different user
Once a user has logged in with a different account, they can use the command "gopher user --use" to switch back and forth between accounts, without being prompted for a login password again.
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>
Use the command "gopher team list" to get the <team-id> and <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>
Use the command "gopher net list" to get the network-id and 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>
Use the command "gopher net list" for the network-id and network-name of the connected Gopher network(s).
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