Skip to main content

Cosmocloud CLI to interact with Cosmocloud Deploy platform using comand line and in CI/CD pipelines.

Project description

Cosmocloud CLI

Cosmocloud CLI is a command line interface for Cosmocloud Deploy. It allows you to interact with Cosmocloud Deploy from the command line.

Installation

To install the Cosmocloud CLI, run the following command:

pip install cosmocloud

Usage

Here are some commands you can use for managing your App Services in Cosmocloud Deploy -

Login

To log in to your Cosmocloud account, use the following command:

cosmocloud login --username <username> --password <password>

If successful, you should see a meesage such as -

Login successful!

If you see any other error messages, please check the message and follow the instructions.

List Organisations

To list the organisations you have access to, use the following command:

cosmocloud list-organisations

This will return a list of organisations you have access to, along with their active status, such as -

TestOrg : ACTIVE
AnotherOrg : ACTIVE
SampleBusiness : INACTIVE

List App Services in an Organisation

To list the app services in a specific organisation, use the following command:

cosmocloud list-app-services --organisation <organisation_name>

This will return a list of app services in the specified organisation, such as -

AppService1 : ACTIVE
AppService2 : ACTIVE
AppService3 : INACTIVE

Get list of Releases for App Service

To get a list of releases for a specific app service, use the following command:

cosmocloud list-releases --organisation <organisation_name> --app-service <app_service_name>

Release a new version for an App Service

To release a new version for an app service, use the following command:

cosmocloud release --organisation <organisation_name> --app-service <app_service_name> --version <version_number> --environment <environment_name>

You can only releases a version once for an app service. If you try to release the same version again, you will see an error message.

You can promote an existing release to another environment, by using the promote command.

Promote a Release to another Environment

To promote a release to another environment, use the following command:

cosmocloud promote --organisation <organisation_name> --app-service <app_service_name> --version <version_number> --environment <environment_name>

If there is no version existing already, you will see an error message.

Connecting to your enterprise Cosmocloud Deploy instance

If you are using an enterprise instance of Cosmocloud Deploy, you can connect to it by setting the --server-url / -s parameter in the commands above. For example:

cosmocloud login --username <username> --password <password> --server-url <your_cosmocloud_deploy_backend_url>

Help and Support

If you need help or support, please contact us at contact@cosmocloud.io.

You can also join our Cosmocloud Discord Server for instant support.

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

cosmocloud-0.0.6.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

cosmocloud-0.0.6-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file cosmocloud-0.0.6.tar.gz.

File metadata

  • Download URL: cosmocloud-0.0.6.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for cosmocloud-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2364a13ae37b3459ef49e4102b6071991a0202cd141b06129111a1f8a68c0028
MD5 25b66c9caa06667e055ff1351cb9e1e1
BLAKE2b-256 1bbba4d172b19a8b4dfa14bec272a43d0bc40a522905bfff6b62554e2c03e3d0

See more details on using hashes here.

File details

Details for the file cosmocloud-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: cosmocloud-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for cosmocloud-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6b7ddf35cea63594d75555e02ff1479de7d206479162f1104cbafe0e2a09be9f
MD5 d95ebc5375f87d79c47c5a2d38d3d5ae
BLAKE2b-256 7b78392d4b622a1e21bfe0b321c7a6e655158a76a21a5aaf3fd7e831156e3b9b

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