npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I鈥檝e always been into building performant and accessible sites, but lately I鈥檝e been taking it extremely seriously. So much so that I鈥檝e been building a tool to help me optimize and monitor the sites that I build to make sure that I鈥檓 making an attempt to offer the best experience to those who visit them. If you鈥檙e into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 馃憢, I鈥檓 Ryan Hefner聽 and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you鈥檙e interested in other things I鈥檓 working on, follow me on Twitter or check out the open source projects I鈥檝e been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon鈥搃sh.

Open Software & Tools

This site wouldn鈥檛 be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 馃檹

漏 2024 鈥撀燩kg Stats / Ryan Hefner

@kibot/cli

v0.1.5

Published

馃 Kibot's command line tool written in node

Downloads

11

Readme

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