Skip to main content

A command line interface for running the compute nest project

Project description

ComputeNest-CLI

Project Description

computenest-cli is a command-line tool that integrates the creation, updating, and deployment of artifacts, as well as the creation and updating of services within the ComputeNest framework. It allows users to manage their services, construct artifacts, and handle custom operations, such as custom image creation.

Requirements

  • Python >= 3.6

Installation

computenest-cli can be installed using the pip package manager.

# Install the computenest-cli 
pip install computenest-cli

Usage

To use computenest-cli, simply run the corresponding command with the required parameters. Each command comes with a --help option to display help information about the command's usage.

Importing Services

computenest-cli import --file_path $FILE_PATH --access_key_id $ACCESS_KEY_ID --access_key_secret $ACCESS_KEY_SECRET

Replace $FILE_PATH with the path to your config.yaml, and $ACCESS_KEY_ID and $ACCESS_KEY_SECRET with your AccessKey ID and AccessKey Secret respectively.

Optional parameters for import command:

Parameter Description Example Value
service_name Name of the service my-service
version_name Name of the service version v1.0
icon Custom icon URL for the service https://xxx/icon.png
desc Description of the service Sample service
update_artifact Whether the artifact needs updating True or False

Exporting Services

computenest-cli export --region_id $REGION_ID --service_name $SERVICE_NAME --file_path $FILE_PATH --access_key_id $ACCESS_KEY_ID --access_key_secret $ACCESS_KEY_SECRET

Set $REGION_ID and $SERVICE_NAME with your targeted Region ID and Service Name, and $FILE_PATH with the desired output path of the configuration file.

Generating Files or Projects

computenest-cli generate --type "file" --file_path $TEMPLATE_PATH --parameters '{}' --output_path $OUTPUT_PATH -y

Add -y to bypass overwrite confirmation prompts if the output file already exists.

Parameter Description
--type The type of generation (file or project).
--file_path File path to the template.
--parameters JSON string of parameters to apply to the template
--parameter_path Path to a JSON or YAML file containing parameters
--output_path Path for the output generated file or project.
-y Confirm overwriting of the output file without prompt.

Getting Help

To obtain help for a specific command, add --help after the command:

computenest-cli import --help

How to Get the AccessKey Pair

Follow the instructions to create an AccessKey pair: Create an AccessKey pair

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

computenest-cli-1.4.7.tar.gz (1.4 MB view hashes)

Uploaded Source

Built Distribution

computenest_cli-1.4.7-py3-none-any.whl (1.4 MB view hashes)

Uploaded Python 3

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