Skip to main content

CLI tool for local management of Nuvla and NuvlaEdges via terminal

Project description

Nuvla Command-Line interface client

Nuvla CLI client. Allows to control some Nuvla functionalities from a terminal. It currently supports the creation of Edges and Fleets, as well as geolocation.


First steps

To use this library it is required to have an account in https://nuvla.io. If you don't have one, go to Nuvla and start with the User Interface.

Once the account is created, you will need to create an API Key credential in Nuvla/UI credentials sections. Due to security reasons, the CLI does not support user/password authentications.

1. Install Nuvla CLI

The package can be installed directly from PyPi repository for convenience.

$ pip install nuvla-cli

Or download the pre-compiled packages from here

Requirements

  • All the dependencies are installed with pip.
  • Python >= 3.8

2. Create credentials in Nuvla

As mentioned before, to use the CLI it is required to have API credentials in Nuvla.io.

To create them:

  1. Go to credentials tab.
  2. Click on add in the top left corner.
  3. Select Nuvla API-Key and provide the name and description that suits better for your needs.
  4. Copy the key-secret as this is the only time it will be provided. If lost, you will need to delete this credential and create a new one.

3. Login the CLI

The CLI provides two login possibilities: environmental variables or cli options.

ENV Variables:

$ export NUVLA_API_KEY='your_api_key'
$ export NUVLA_API_SECRET='your_secret_key'
$ nuvla-cli login

CLI Options

$ nuvla-cli login --key 'your_api_key' --secret 'your_secret_key'

The session is persistent and stored in the user's path under ~/.nuvla/. To remove the session just logout using the CLI.

For further details, the whole help depiction on the CLI can be found here

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

nuvla_cli-1.0.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuvla_cli-1.0.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file nuvla_cli-1.0.0.tar.gz.

File metadata

  • Download URL: nuvla_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Linux/5.15.0-1036-azure

File hashes

Hashes for nuvla_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7477944143ed0c95979934ea3bd29c2294873e4e2b6c3dbc3d26179f0bee3892
MD5 0944a956481feb67b1faefa31fd31549
BLAKE2b-256 9870e78fddae91008d18338b58818c076a9807e0400ce70aaa1f73fd917bf081

See more details on using hashes here.

File details

Details for the file nuvla_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nuvla_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Linux/5.15.0-1036-azure

File hashes

Hashes for nuvla_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b7dc88bd97bdcb9d855d53339abb74093c88daec487677a8ffde63578f68185
MD5 8d4c2f39e0ffce76632800382a03e9b8
BLAKE2b-256 4742d1dfeaa1071a5c962dd09ed4cade0e601f7a6007b742e74e09aed8597372

See more details on using hashes here.

Supported by

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