Skip to main content

GeoSpock CLI

Project description

GeoSpock CLI

Installation

Installing the CLI from pip

    $ python -m pip install geospock-cli

Logging in with your enterprise Identity Provider (GeoSpock v3.1 and above)

The login command creates a configuration file with an encoded copy of your username and password along with the request address for your deployment.

Alternatively, if you do not want to save your details in a config file:

  • all geospock commands can be run with the arguments --user <value> --password <value> --request-address <value>.
  • the CLI will also check for the environment variables GEOSPOCK_USER and GEOSPOCK_PASSWORD and use these to authenticate. The --request-address <value> argument will still need to be added to the command.

An optional --profile {profileID} argument can be used to set up configurations for multiple GeoSpock deployments. All subsequent geospock commands can then use this profile flag to specify that deployment.

Getting credentials for the inbuilt Identity Provider (GeoSpock v3.0)

The init command creates a configuration file with the argument values for your your deployment:

geospock init --clientid abcdefgh1234 --audience https://testaudience.geospock.com --auth0url login.test.com --request-address https://testrequest.geospock.com/graphql

An optional --profile {profileID} argument can be used to set up configurations for multiple GeoSpock deployments. All subsequent geospock commands can then use this profile flag to specify that deployment.

To authenticate the CLI to use your GeoSpock account, the following command can be used (alternatively this will be run automatically when a user first tries to use a command).

geospock get-credentials [--profile {profileID} --no-browser]

This will open a web-page in the user's default web browser to authenticate. If the --no-browser flag is added, this will instead provide a web-address for a user to visit in order to authenticate. The user should enter their GeoSpock username and password when requested to authorise the CLI. This process should only be required once per user per profile.

Running the CLI

The CLI can be activated at the command line using geospock COMMAND ... [--profile {profileID}] A list of commands can be shown by using geospock help [--profile {profileID}]. Further information on the input types of each command can be obtained by running geospock help COMMAND [--profile {profileID}].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geospock-cli-3.0.6.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

geospock_cli-3.0.6-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file geospock-cli-3.0.6.tar.gz.

File metadata

  • Download URL: geospock-cli-3.0.6.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for geospock-cli-3.0.6.tar.gz
Algorithm Hash digest
SHA256 8897c5f7f99cabdeea34e8b94bdf62fffe0efb5dbb201a7ab8a4a1fab3959a26
MD5 b169148b6805a8f9b908e341c2fe4c68
BLAKE2b-256 40a60d7587e0c328ff73d0007e05a3c7d80cb88935f79b6a07e60d208aba0096

See more details on using hashes here.

File details

Details for the file geospock_cli-3.0.6-py3-none-any.whl.

File metadata

  • Download URL: geospock_cli-3.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for geospock_cli-3.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ec71c9584f1f9a694d4b144fdbf739931c4c39097035b7878c321570f576aa26
MD5 c958e6b3d4a99902551f2054135b8630
BLAKE2b-256 97546f514f5dd95c096c10765699c8463fd7d1cb35e6c50ee62af842c5439cd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page