0.2.3 • Published 3 years ago

cognigy-extension-manager v0.2.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

cognigy-extension-manager

The script is used to upload the extensions to Cognigy by running a simple command from within the pipeline or manually.

To use this script in a repo follow the steps:

  1. Install the package inside the extension repo:
npm i cognigy-extension-manager@latest --save-dev
  1. Add execution permission for the script
chmod +x node_modules/.bin/cu.upload-handler
  1. Run the script
npm exec cu.upload-handler config.json extension-name project-name

config.json - is a json file with an object containing C_API_KEY and PROJECT_ID for multiple projects as in the following example:

{
    "project1": {
        "C_API_KEY": "api_key",
        "PROJECT_ID": "project_id"
    },
    "project2": {
        "C_API_KEY": "api_key_2",
        "PROJECT_ID": "project_id_1"
    }
}

extension-name - is the name of application. The same name as in package.json

project-name - is the name of project you want to deploy to (eg.: project1, project2). It can also have the value all, in which case all projects will be updated.


If you'd like to contribute to improve the extension, you can raise a pull reuqest here https://github.com/ali3nnn/cognigy-extension-manager

Further improvements: take the extension name from package.json

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago