Skip to main content

No project description provided

Project description

CG DevX CLI

The CG DevX CLI simplifies the initial setup of the CG DevX reference architecture. This setup process is intended to be executed from an operator's machine and will create a local folder containing tools, temporary, and configuration files. All subsequent commands should be executed from the same machine, as they rely on data created during the setup process.

Getting Started

Required Installations

  • Python 3.10 + pip
  • Poetry version 1.6.*

If you do not have Poetry installed, follow the official installation instructions here: Poetry Installation.

# Assumed directory: GITROOT/tools
# Note: Poetry configuration and lock files are stored in the 'cli' directory.

# To install dependencies, use:
poetry install

# To activate the virtual environment, use:
# By default, Poetry creates a virtual environment in {cache-dir}/virtualenvs
poetry shell

Local development

Code Style

Run the command to validate code style:

flake8

To run provisioning using a local dev version of repository, instead of cloning GitOps template repo, you could use environment variable CGDEVX_CLI_CLONE_LOCAL=True

Build the CLI Tool

To build the CLI tool, use PyInstaller:

# Current directory: GITROOT/tools
python -m PyInstaller --onefile cli/__main__.py --name cgdevxcli

Alternatively, you can build with PyInstaller via a Python script:

# Current directory: GITROOT/tools
poetry run build

After building, you can use and distribute cgdexvcli located at GITROOT/dist/cgdevxcli.

Using CG DevX CLI

To run a Python script via Poetry, use the snippet below:

 # Current directory: GITROOT/tools
poetry run cgdevxcli

Or, use a version built using the steps above:

# Current directory: GITROOT/tools
./dist/cgdevxcli

The usage pattern is [OPTIONS] COMMAND [ARGS].

CG DevX CLI Supports the Following: Options:

  • --help Shows the help message

Commands:

  • setup - Creates a new CG DevX installation.
  • destroy - Destroys an existing CG DevX installation.
  • workload - Manages workloads with the following subcommands:
    • create - Generates configuration for key workload resources.
    • bootstrap - Bootstraps a workload with configuration templates.
    • delete - Removes configuration for key workload resources.

Arguments: Arguments are command-specific and can be supplied via the command line, environment variables, or a file.

For more details, please check CG DevX quickstart commands and workload commands

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

cgdevxcli-0.5.0.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

cgdevxcli-0.5.0-py3-none-any.whl (112.3 kB view details)

Uploaded Python 3

File details

Details for the file cgdevxcli-0.5.0.tar.gz.

File metadata

  • Download URL: cgdevxcli-0.5.0.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.8.0-1014-azure

File hashes

Hashes for cgdevxcli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 35ebd4446711e29b2880bd33cc0d0bb94f31e387c9c8cfaedff03d77d7a9a25a
MD5 1d0722f175cd8c6db1033660fe629b49
BLAKE2b-256 585c9b778a18d606e5034098046638c54a2695e74ac86977022331389859444b

See more details on using hashes here.

File details

Details for the file cgdevxcli-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: cgdevxcli-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 112.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.8.0-1014-azure

File hashes

Hashes for cgdevxcli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f678c79da5c5a17b078cf44e40d2fa34778749b839ff42ae36cb4c574ceed2d3
MD5 d22cf476e74e00893f6bb9aa4e4e3a84
BLAKE2b-256 42758176d9a72df4ce91e8df38f66a75af3cecf3c78cb5b2b3b2926552efe3b0

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