0.2.34 • Published 6 years ago

thoughtdata-cli v0.2.34

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

thoughtdata-cli

A CLI interface for ThoughtData. ThoughtData is actually just a http://swagger.io/ enabled API so there is no reason this CLI could be pointed at any other swagger API too....

The magic of this CLI is it will read the swagger spec, and then ask questions, or even throw you into vim to edit JSON files if required!

Getting started

Do a global install... npm install -g thoughtdata-cli

Set the environment variable to the swagger definition you want to use export SWAGGER_URL=https://yourhost.com/swagger.json

Disable TLS cert checking if you're using self signed, like I am at the moment... export NODE_TLS_REJECT_UNAUTHORIZED=0

Type tdata which will load the swagger json, and give you magical matching menu options.

$ tdata
? Which API do you wish to access? (Use arrow keys)
❯ model
  schema
  subscription
$ tdata
? Which API do you wish to access? schema
? Which operations do you want to perform? (Use arrow keys)
❯ GET: /schema/{id}
  - POST: /schema (Posting is currently disabled)
$ tdata
? Which API do you wish to access? schema
? Which operations do you want to perform? GET: /schema/{id}
? The schema name to read? people
Invoking read on schema with { id: 'people' }
{}
Status: 200
{
  "id": "people",
  "properties": {},
  "required": []
},
{
  "id": "string",
  "properties": {},
  "required": [
    "id"
  ]
}
0.2.34

6 years ago

0.2.33

7 years ago

0.2.32

7 years ago

0.2.31

7 years ago

0.2.30

7 years ago

0.2.28

7 years ago

0.2.27

7 years ago

0.2.26

7 years ago

0.2.25

7 years ago

0.2.24

7 years ago

0.2.23

7 years ago

0.2.20

7 years ago

0.2.19

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago