3.0.19 • Published 2 years ago

@jnig/chili-api-cli v3.0.19

Weekly downloads
263
License
MIT
Repository
github
Last release
2 years ago

api-cli

oclif Version Downloads/week License

Usage

$ npm install -g @jnig/chili-api-cli
$ chili-api-cli COMMAND
running command...
$ chili-api-cli (-v|--version|version)
@jnig/chili-api-cli/3.0.19 linux-x64 node-v14.17.4
$ chili-api-cli --help [COMMAND]
USAGE
  $ chili-api-cli COMMAND
...

Commands

chili-api-cli create-api

Create an typescript api client from an openapi json definition.

USAGE
  $ chili-api-cli create-api

OPTIONS
  -f, --file=file      Filepath for writing the generation api client. Should end with .ts
  -h, --help           show CLI help
  -s, --schema=schema  [default: ./openapi.json] path to openapi / swagger file e.g. openapi.json

EXAMPLE
  $ magana-api-cli -u
  hello world from ./src/hello.ts!

See code: src/commands/create-api.ts

chili-api-cli create-controller

Generate a new CRUD controller.

USAGE
  $ chili-api-cli create-controller

OPTIONS
  -h, --help       show CLI help
  --model=model    (required) model name e.g. User or UserToken
  --module=module  (required) module name e.g. core or auth

EXAMPLE
  $ api-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/create-controller.ts

chili-api-cli create-migration [NAME]

Create a new database migration file.

USAGE
  $ chili-api-cli create-migration [NAME]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -n, --name=name  name to print

EXAMPLE
  $ magana-api-cli create-migration add-table-users
  hello world from ./src/hello.ts!

See code: src/commands/create-migration.ts

chili-api-cli create-routes [DIRECTORY]

Create route definitions from controllers

USAGE
  $ chili-api-cli create-routes [DIRECTORY]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -n, --name=name  name to print

EXAMPLE
  $ api-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/create-routes.ts

chili-api-cli help [COMMAND]

display help for chili-api-cli

USAGE
  $ chili-api-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

api-cli

3.0.19

2 years ago

2.2.10

3 years ago

3.0.18

3 years ago

2.0.18

3 years ago

1.2.12

3 years ago

1.2.11

3 years ago

1.2.10

3 years ago

1.2.9

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.2.8

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.0.6

3 years ago

1.2.3

3 years ago

1.0.5

3 years ago

1.2.2

3 years ago

1.0.4

3 years ago

1.2.1

3 years ago

1.0.3

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago