Miss any of our Open RFC calls?Watch the recordings here! »

@tomilenko/tomcli

0.1.5 • Public • Published

tomcli

CLI tool

oclif Version Appveyor CI Downloads/week License Donate

Description

The command line tool for generating projects or specific files. You can generate predefined project template like express app with custom project structure etc. You can find it in templates/projects.

You can add you own template (like in templates/projects/node-express) and generate it where you need for new project setup.

Usage

$ npm install -g @tomilenko/tomcli
$ tomcli COMMAND
running command...
$ tomcli (-v|--version|version)
@tomilenko/tomcli/0.1.5 darwin-x64 node-v12.1.0
$ tomcli --help [COMMAND]
USAGE
  $ tomcli COMMAND
...

Commands

tomcli generate [TEMPLATE] [NAME] [DEST]

Generate files

USAGE
  $ tomcli generate [TEMPLATE] [NAME] [DEST]

ARGUMENTS
  TEMPLATE  Generation type name
  NAME      Project name
  DEST      Destination directory

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ tomcli generate

See code: src/commands/generate.ts

tomcli hello [FILE]

describe the command here

USAGE
  $ tomcli hello [FILE]

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

EXAMPLE
  $ tomcli hello
  hello world from ./src/hello.ts!

See code: src/commands/hello.ts

tomcli help [COMMAND]

display help for tomcli

USAGE
  $ tomcli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

tomcli project [TEMPLATE] [NAME]

Create new project

USAGE
  $ tomcli project [TEMPLATE] [NAME]

ARGUMENTS
  TEMPLATE  Template name
  NAME      Project name

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project.ts

Keywords

Install

npm i @tomilenko/tomcli

DownloadsWeekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

317 kB

Total Files

71

Last publish

Collaborators

  • avatar