1.0.80 β€’ Published 6 years ago

@totvslabs/carol v1.0.80

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@totvslabs/carol

CAROL CLI - Carol AI command line interface

Prerequisites

  • System architecture x86_64
  • Node.js >=8.9
  • GCC, LLVM or C++ compiler should support C++11 features i.e. LLVM version 10.0.0 (clang-1000.11.45.2)
  • Cryptographic library libgcrypt should be installed on macOS, Linux or windows. Install on macOS using command brew install libgcrypt
  • Git scm

Getting started

Installation

  • You can install Carol CLI by following command:
    $ sudo npm install @totvslabs/carol -g

Commands

The Carol CLI currently supports following commands.

 Usage: carol [options] [command]

  Options:
    -v, --version                     output the version number
    -h, --help                        output usage information
#COMMANDSDESCRIPTION
1[login (alias: l)](#login)Login to a tenant.
2[new (alias: n)](#new)Create a new Carol app.
3[list (alias: ls)](#list)List Carol apps of an active tenant.
4[app (alias: a)](#app)Upload a file and/or submit against a connected Carol app.
5[connect (alias: c)](#connect)Connect a tenant or an app in CLI.
6[status (alias: s)](#status)Carol CLI's connection status.
7[info (alias: i)](#info)Display Carol CLI information.
8[logout](#logout)Logout a user from a configured tenant in CLI.

1. carol login (alias: l) command

Overview

carol login|l login to a specified tenant in CLI

Options

examples

$ carol login -t shiv -u shiv@totvslabs.com
$ ? Password: ********

Output:
$ Connected tenant:shiv Connected user:shiv@totvslabs.com

2. carol new (alias: n) command

Overview

carol new|n <name> <version> generates a new Carol app.

Options

examples

$ carol new demo 1.0.0

Output:
$ βœ”  Carol app demo prerequisites acquiring ...
  🌱 Carol app demo prerequisites acquired.
  βœ”  Carol app demo is creating ...
  πŸš€ Carol app demo created and published.
  Access your application: https://shiv.carol.ai/apps/dev/demo/1.0.0/index.html

 --------------------------------------------------------------
  πŸ”– Tenant:shiv User:shiv@totvslabs.com App:<no app connected>

3. carol list (alias: ls) command

Overview

carol list|ls lists Carol apps.

Options

examples

1.

$ carol list

Output:
$ βœ” Fetching app list...
   Name                   AppVersion  Created                   LastUpdated             
   ---------------------  ----------  ------------------------  ------------------------
   Student Retention      1.0         2017-10-10T07:19:19.000Z  2017-10-10T07:21:19.000Z
   DiagnΓ³stico de Vendas  1.0         2017-10-10T22:50:19.000Z  2017-10-10T22:59:01.000Z

   --------------------------------------------------------------------
   πŸ”– Tenant:robson User:robson.poffo@totvs.com App:<no app connected>

2.

$ carol list --app demo@1.0.0

Output:
$ Label      : demo
  Name       : demo
  Version    : 1.0.0
  Description: -
  Powered By : Carol
  Url        : https://shiv.carol.ai/apps/dev/demo/1.0.0/index.html

  File Name               Type  Updated                 
  ----------------------  ----  ------------------------
  site.zip                WEB   2018-10-02T20:12:42.333Z
  welcomeCarolApp-AI.zip  AI    2018-10-02T20:27:10.636Z

  --------------------------------------------------------------
  πŸ”– Tenant:shiv User:shiv@totvslabs.com App:<no app connected>

4. carol app (alias: a) command

Overview

carol app|a uploads a file and/or submits a connected Carol app for review.

Options

examples

1.

$ carol app -u ./welcomeCarolApp-AI.zip

Output:
$ βœ”  Carol app demo upload is in progress ...
  πŸš€ Carol app demo@1.0.0 uploaded and available for access.
  Access your application: https://shiv.carol.ai/apps/dev/demo/1.0.0/index.html

  File Name               File Type  Updated                 
  ----------------------  ---------  ------------------------
  site.zip                WEB        2018-10-02T20:12:42.333Z
  welcomeCarolApp-AI.zip  AI         2018-10-04T18:38:11.470Z

  --------------------------------------------------------
  πŸ”– Tenant:shiv User:shiv@totvslabs.com App:demo@1.0.0

2.
```cmd
$ carol app -s

Output:
$ Carol app demo@1.0.0 submitted for review.
   --------------------------------------------------------
   πŸ”– Tenant:shiv User:shiv@totvslabs.com App:demo@1.0.0

5. carol connect (alias: c) command

Overview

carol connect|c <entity> <value> connects to a tenant or an app in CLI.

Where, entity = tenant or app value = <tenant-name@username> or <app-name>@<app-version> for entity above respectively.

examples

1.

$ carol connect tenant shiv@shiv@totvslabs.com

Output:
$ Connected tenant:shiv Connected user:shiv@totvslabs.com 

2.

$ carol connect app demo@1.0.0

Output:
$ Tenant:shiv Connected app:demo@1.0.0 

6. carol status (alias: s) command

Overview

carol status|s gives status of connected tenant, user and app in CLI.

examples

$ carol status

Output:
$ Tenant:shiv User:shiv@totvslabs.com App:demo@1.0.0

7. carol info (alias: i) command

Overview

carol info|i gives cli and system details.

examples

$ carol info

Output:
$ CAROL CLI
  [System Information]
  OS Version     : macOS High Sierra
  NodeJS Version : v8.12.0
  NPM Version    : 6.4.1
  [Carol Information]
  CLI Version    : 1.0.79

8. carol logout command

Overview

carol logout <tenant> <username> Logs out a user from a tenant configured in CLI.

examples

$ carol logout shiv shiv@totvslabs.com

Output:
$ Logged out user:shiv@totvslabs.com from tenant:shiv 

Issues

License

The MIT License (MIT)

Copyright (c) 2018 TOTVS Labs

1.0.80

6 years ago

1.0.78

6 years ago

1.0.77

6 years ago

1.0.76

6 years ago

1.0.75

6 years ago

1.0.74

6 years ago

1.0.73

6 years ago

1.0.72

6 years ago

1.0.71

6 years ago

1.0.70

6 years ago

1.0.69

6 years ago

1.0.68

6 years ago

1.0.67

6 years ago

1.0.66

6 years ago

1.0.65

6 years ago

1.0.64

6 years ago

1.0.63

6 years ago

1.0.62

6 years ago

1.0.61

6 years ago

1.0.60

6 years ago

1.0.59

6 years ago

1.0.58

6 years ago

1.0.57

6 years ago

1.0.56

6 years ago

1.0.55

6 years ago

1.0.54

6 years ago

1.0.53

6 years ago

1.0.52

6 years ago

1.0.51

6 years ago

1.0.50

6 years ago

1.0.49

6 years ago

1.0.48

6 years ago

1.0.46

6 years ago

1.0.45

6 years ago

1.0.44

6 years ago

1.0.43

6 years ago

1.0.42

6 years ago

1.0.41

6 years ago

1.0.40

6 years ago

1.0.38

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago