Skip to content

kaka-ng/fastify-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

$ npm install -g fastify-cli
$ fastify COMMAND
running command...
$ fastify (--version)
fastify-cli/3.1.0 linux-x64 node-v18.2.0
$ fastify --help [COMMAND]
USAGE
  $ fastify COMMAND
...

Commands

fastify generate plugin [NAME]

Generate fastify plugin

USAGE
  $ fastify generate plugin [NAME] [--location <value>] [--overwrite] [--repo <value>] [--language <value>] [--lint
    <value>] [--test <value>] [--help]

ARGUMENTS
  NAME  Name of the plugin

FLAGS
  --help              Show CLI help.
  --language=<value>  Programming Language you would like to use in this project.
  --lint=<value>      Lint Tools you would like to use in this project.
  --location=<value>  Location to place the project.
  --overwrite         Force to overwrite the project location when it exist.
  --repo=<value>      Git repository url of the project.
  --test=<value>      Test Framework you would like to use in this project.

DESCRIPTION
  Generate fastify plugin

fastify generate project [NAME]

Generate fastify project

USAGE
  $ fastify generate project [NAME] [--location <value>] [--overwrite] [--language <value>] [--lint <value>] [--test
    <value>] [--help]

ARGUMENTS
  NAME  Name of the project.

FLAGS
  --help              Show CLI help.
  --language=<value>  Programming Language you would like to use in this project.
  --lint=<value>      Lint Tools you would like to use in this project.
  --location=<value>  Location to place the project.
  --overwrite         Force to overwrite the project location when it exist.
  --test=<value>      Test Framework you would like to use in this project.

DESCRIPTION
  Generate fastify project

fastify help [COMMAND]

Display help for fastify.

USAGE
  $ fastify help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for fastify.

See code: @oclif/plugin-help

fastify start ENTRY

Start fastify instance

USAGE
  $ fastify start [ENTRY] [-r <value>] [-p <value>] [-a <value>] [--debug-port <value> -d] [--debug-address
    <value> ] [--prefix <value>] [-P] [--watch] [--watch-ignore <value>] [--watch-verbose] [--help]

ARGUMENTS
  ENTRY  Entry point of fastify instance.

FLAGS
  -P, --pretty-logs         [default: false] Use "pino-pretty" for log display. It require to install the module
                            seperately.
  -a, --address=<value>     [default: localhost] Address listen on. It can be either address or socket.
  -d, --debug               [default: false] Enable debug mode.
  -p, --port=<value>        [default: 3000] Port listen on.
  -r, --require=<value>...  Preload Modules, for example "-r ts-node/register".
  --debug-address=<value>   Inspector host, by default it will be either "localhost" or "0.0.0.0" in docker.
  --debug-port=<value>      [default: 9320] Inspector port.
  --help                    Show CLI help.
  --prefix=<value>          [default: ""] Entry file prefix.
  --watch
  --watch-ignore=<value>
  --watch-verbose

DESCRIPTION
  Start fastify instance

See code: dist/commands/start.ts

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published