Giter Site home page Giter Site logo

kibot-cli-node's Introduction

Kibot CLI

kibot es una interfaz de l铆nea de comandos que funciona como orquestador para gestionar el flujo de procesos que se dan entre Kibot y el middleware Kibot.Quiron.Middleware.

Instalaci贸n

Como requisito es necesario tener instalado el entorno de ejecuci贸n de JavaScript NodeJS. Se recomienda instalar la versi贸n LTS.

Instalar el CLI usando el gestor de paquetes npm

npm install --global @kibot/cli

# o m谩s corto
npm i -g @kibot/cli

Desinstalaci贸n

npm uninstall --global @kibot/cli

# o m谩s corto
npm un -g @kibot/cli

Documentaci贸n

Comandos principales

  • help: muestra ayudas sobre cualquier comando
  • config: permite gestionar el archivo de configuraci贸n global
    • reveal: muestra la ruta del archivo de configuraci贸n
    • preview: muestra la configuraci贸n actual
    • remove: elimina el archivo de configuraci贸n del disco
    • create: crea un nuevo archivo de configuraci贸n
  • db: permite realizar operaciones de lectura en la base de datos
    • test: comprueba el estado de la conexi贸n
  • appointments: permite gestionar las citas
    • list: muestra las citas de la tabla ChatbotCitas en formato JSON o en una tabla
    • prepare: carga las citas en la tabla ChatbotCitas antes de ser subidas
    • upload: toma las citas de la tabla ChatbotCitas y las sube a la nube

help

Usage: kibot [options] [command]

Options:
  -h, --help      display help for command

Commands:
  test-db
  appointments
  help [command]  display help for command

config

Usage: kibot config [options] [command]

Options:
  -h, --help              display help for command

Commands:
  reveal
  preview
  remove
  create [options] <app>
  help [command]          display help for command

reveal

Usage: kibot config reveal [options]

Options:
  -h, --help  display help for command

preview

Usage: kibot config preview [options]

Options:
  -h, --help  display help for command

remove

Usage: kibot config remove [options]

Options:
  -h, --help  display help for command

create

Usage: kibot config create [options] <app>

Options:
  -c --client <client>                  Client ID
  -db --database <database>             Database name
  -s --server <server>                  Server instance name
  -usr --user <user>                    Username
  -pwd --password <password>            Password
  -uw --uploadwebhook <uploadwebhook>  Webhook to upload appointments
  -h, --help                            display help for command

db

Usage: kibot db [options] [command]

Options:
  -h, --help      display help for command

Commands:
  test
  help [command]  display help for command

test

Usage: kibot db test [options]

Options:
  -h, --help  display help for command

appointments

Usage: kibot appointments [options] [command]

Options:
  -h, --help      display help for command

Commands:
  list [options]
  prepare
  upload
  help [command]  display help for command

list

Usage: kibot appointments list [options]

Options:
  -f --format <format>  display data in JSON or Table format (default: "json")
  -h, --help            display help for command

prepare

Usage: kibot appointments prepare [options]

Options:
  -h, --help  display help for command

upload

Usage: kibot appointments upload [options]

Options:
  -h, --help  display help for command

Configuraci贸n

La configuraci贸n del CLI se maneja a trav茅s de un archivo JSON

Este es un ejemplo de su estructura.

{
  "apps": {
    "quiron": {
      "client": 32,
      "database": {
        "database": "",
        "server": "",
        "user": "",
        "password": "",
        "options": {
          "trustedConnection": true,
          "trustServerCertificate": true
        }
      },
      "webhooks": {
        "uploadAppointments": "https://kibot-quiron-middleware.azurewebsites.net/api/chatbotcita/create"
      }
    }
  }
}

Este es un ejemplo del comando que se puede utilizar para crear el archivo.

kibot config create quiron --client 32 --database Quiron --server JUAN-WICK --uploadwebhook https://kibot-quiron-middleware.azurewebsites.net/api/chatbotcita/create

# o m谩s corto
kibot config create quiron --c 32 --db Quiron --s JUAN-WICK --uw https://kibot-quiron-middleware.azurewebsites.net/api/chatbotcita/create

Otros

kibot-cli-node's People

Contributors

jm2097 avatar juanrentem avatar renovate-bot avatar

Watchers

 avatar

kibot-cli-node's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.