Skip to main content

A CLI to interact with the Lumavate platform

Project description

Lumavate CLI

  • To contribute, report bugs, or suggest features, read the contributing guide here.

Config Summary:

  • Install CLI
  • Provision CLI credentials
  • Configure CLI
  • Example Commands

Installing the CLI from pip:


  • On Windows, run BASH as admin and omit 'sudo'
$ sudo pip3 install luma

Installing the CLI from source:


  • Clone this repo.
  • CD into the CLI dir and run:
$ sudo pip3 install .

Installing the CLI as a non-admin:


  • Install luma using the --user flag and then add to path
$ pip3 install luma --user

CLI support:


  • The CLI is written for and tested in a BASH shell
  • To get the most of of the CLI, use it with ZSH. This enables extra features such as showing help text during autocompletion
  • To activate autocompletion after install, restart your terminal or source your shell config (Either .zshrc or .bash_profile)

Provision CLI Credentials:


  • In the Lumavate App, navigate to the Lumavate CLI page inside a command center
  • Provisioning CLI credentials will generate credentials for the user you are currently signed in as
  • When running the add profile command, you will have the option to associate the new profile to any
    organization your user has access to, regardless of the command center you are currently in

CLI Config:


  • Configuring the CLI requires two steps, configuring environments and configuring profiles.
    • Environments know how to get and refresh tokens so you stay authorized with the platform as a user.
    • Profiles give the user a company context which is required by most of the platform API.

CLI Env:

  • To configure the CLI Env, run the generated command from the Lumavate CLI page in the app in your terminal
  • To configure each Env value one by one, run:
$ luma env config

Env Name: prod
App: appUrl
Token: token
Audience: audience
Client id: clientId
Client secret: clientSecret

CLI Profile:

  • To add a profile to the CLI, run:
$ luma profile add

Profile Name: globex
Env: prod
Org ID you want to associate with this profile: 11

Running Commands


  • To list top level commands, run:
$ luma
  • To get help with any command or subcommand, run it without passing in any options or, pass in the --help flag
  • As an example let's create a microservice, create a version, upload a docker image, and start the service
$ luma microservice add
Profile: globex
Name: Auth Service
Url ref: auth
| id | name         | urlRef | createdAt         | createdBY          |
|----|--------------|--------|-------------------|--------------------|
| 45 | Auth Service | auth   | 10/16/18 20:29:49 | john+doe@gmail.com |

$ luma microservice access --profile globex
Microservice: auth
| failed | sharedWith | unsharedWith | resultingGrantees |
|--------|------------|--------------|-------------------|
| []     | []         | []           | []                |

$ luma microservice access -p globex --container auth --add "Acme Corp" --add Initech
| failed | sharedWith   | unsharedWith | resultingGrantees        |
|--------|--------------|--------------|--------------------------|
| []     | [{id}, {id}] | []           |  [Acme Corp, 'Initech']  |

$ luma microservice-version add -p globex --version-number 0.1.0 --container-file-path ~/Desktop/auth-service.tar.gz --label prod --port 8080 -c auth
| id  | actualState | versionNumber | label | createdAt         | createdBy          |
|-----|-------------|---------------|-------|-------------------|--------------------|
| 107 | created     | 0.1.0         | prod  | 10/16/18 20:46:44 | john+doe@gmail.com |

$ luma microservice-version start -p globex
Microservice: auth
Version: 0.1.0
Starting Microservice  [####################################]  100%

Additional Information


  • To contribute, report bugs, or suggest features, read the contributing guide here.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

luma-0.10.3.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

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

luma-0.10.3-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file luma-0.10.3.tar.gz.

File metadata

  • Download URL: luma-0.10.3.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for luma-0.10.3.tar.gz
Algorithm Hash digest
SHA256 a7539ec685d5a26df9aab9941860106bf9b20920fad7afa139217d5631dfa5aa
MD5 5345a07ed8a0a2f5860012e5cbd5c5e5
BLAKE2b-256 ab97096e77865c3be8d6943e2a237a6e05d16289839a586f53f5f18ca7201e15

See more details on using hashes here.

File details

Details for the file luma-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: luma-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for luma-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9484a828527161dcd6994be3e9e9e07522d2db9cd197599fcb99ea1d2f4df131
MD5 3d68950911c792857dbd32f31d8205ac
BLAKE2b-256 b86645e3313c2de8b3b242372c624f8d834027f462ad3d3d3485809ceb593e59

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