Skip to main content

CloudBlue Connect Product Synchronizer CLI

Project description

CloudBlue Connect Command Line Interface

pyversions PyPi Status Build Status codecov Quality Gate Status

Introduction

The CloudBlue Connect Command Line Interface (CLI) is a unified tool to perform various automation scenarios. With just one tool, you can control multiple Connect modules from the command line and automate them through scripts.

connect-cli allow users to export/synchronize the items of a product to/from an Excel workbook.

Install

Using PIP

To use connect-cli you need a system with python 3.6 or later installed.

    $ pip install --upgrade connect-cli

Binary distributions

A single executable binary distribution is available for windows, linux and mac os x. You can it from the Github Releases page.

To install under linux:

    $ curl -O -J https://github.com/cloudblue/connect-cli/releases/download/21.12/connect-cli_21.12_linux_amd64.tar.gz
    $ tar xvfz connect-cli_21.3_linux_amd64.tar.gz
    $ sudo cp dist/ccli /usr/local/bin/ccli

To install under Mac OS X:

    $ curl -O -J https://github.com/cloudblue/connect-cli/releases/download/21.12/connect-cli_21.12_osx_amd64.tar.gz
    $ tar xvfz connect-cli_21.3_osx_amd64.tar.gz
    $ sudo cp dist/ccli /usr/local/bin/ccli

If your user is not a sudoer, you can copy the ccli executable from the dist directory to a directory of your choice that is listed in the PATH variable.

To install under Windows

Download the windows single executable zipfile from Github Releases, extract it and place it in a folder that is included in your path system variable.

Usage

Add a new account

First of all you need to add an account the connect-cli with the CloudBlue Connect API key.

    $ ccli account add "ApiKey XXXXX:YYYYY"

List configured accounts

To get a list of all configured account run:

    $ ccli account list

Set the current active account

To set the current active account run:

    $ ccli account activate VA-000-000

Remove an account

To remove an account run:

    $ ccli account remove VA-000-000

List available products

To get a list of available products run:

    $ ccli product list

This command will output a list of all products (id and name) available within the current active account. You can also filter the results by adding the --query flag followed by a RQL query. For more information about RQL see the Resource Query Language article in the Connect community documentation portal.

Export a product to Excel

To export a product to Excel run:

    $ ccli product export PRD-000-000-000

This command will generate a excel file named PRD-000-000-000.xlsx in the current working directory.

Synchronize a product from Excel

To synchronize a product from Excel run:

    $ ccli product sync PRD-000-000-000

Clone a product

To clone a product you can run this command:

    $ ccli product clone PRD-000-000-000

this command also accepts as additional parameters:

  • -s: to specify the source account
  • -d: to specify the destination account
  • -n: to specify the name for the cloned one

Reports

Multiple reports are available to the Connect-cli tool, additionally you can create your owns and run them

to list available reports you can run:

    $ ccli report list

to execute a concrete report, you must get the id from the list before and execute:

    $ ccli report execute {ID}

for example:

    $ ccli report execute fulfillment_requests

Getting help

To get help about the connect-cli commands type:

    $ ccli --help

License

connect-cli is released under the Apache License Version 2.0.

Project details


Release history Release notifications | RSS feed

This version

22.1

Download files

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

Source Distribution

connect-cli-22.1.tar.gz (166.2 kB view details)

Uploaded Source

Built Distribution

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

connect_cli-22.1-py3-none-any.whl (235.3 kB view details)

Uploaded Python 3

File details

Details for the file connect-cli-22.1.tar.gz.

File metadata

  • Download URL: connect-cli-22.1.tar.gz
  • Upload date:
  • Size: 166.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.7

File hashes

Hashes for connect-cli-22.1.tar.gz
Algorithm Hash digest
SHA256 6fa0c0ce499592f6fa754e910d3409de8785a5567372dff9535937a0440016c8
MD5 f8b71623a52824890620fe80167cdf58
BLAKE2b-256 23a828121aee0fcb5c6c428cd06bca2dc5cfd8fae797c594044047460beebef3

See more details on using hashes here.

File details

Details for the file connect_cli-22.1-py3-none-any.whl.

File metadata

  • Download URL: connect_cli-22.1-py3-none-any.whl
  • Upload date:
  • Size: 235.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.7

File hashes

Hashes for connect_cli-22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0ee83a68ba62c8c1b3c68aa505e8128600b68dcf2a66fa9c8cdb2e51ae80242
MD5 fa926b1a3b9de608be6bb1a6daf524de
BLAKE2b-256 3c83430ccc79300996efb9b6848dfed48f3af47d302b5d1873c224d00e9cfdb8

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