Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oclif-template

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oclif-template

oclif multi command, space separated cli

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

oclif-template

oclif Version Downloads/week License

Development

Starting a development session is easy, just run yarn nodemon once all dependencies are installed. You can create an alias to the absolute path to ./bin/run so you can easily run the CLI in development to test. In Linux, if you use bash, you can add to the end of ~/.bashrc the following line:

alias YOUR_CLI_NAME-test="ABSOLUTE_PATH_TO_YOUR_CLI_FOLDER/bin/run"

After restarting the active terminals you'll be able to run YOUR_CLI_NAME-test and you'll be running the dev version of your CLI.

In MacOS you can add to the end of ~/.bash_profile (if you use bash) the same line presented above - maybe you'll have to restart the computer for the new alias to take effect.

Usage

$ npm install -g oclif-template
$ cli COMMAND
running command...
$ cli (-v|--version|version)
oclif-template/0.0.1 linux-x64 node-v12.13.0
$ cli --help [COMMAND]
USAGE
  $ cli COMMAND
...

Commands

cli help [COMMAND]

display help for cli

USAGE
  $ cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

cli ls

List local files

USAGE
  $ cli ls

EXAMPLE
  cli ls

See code: src/commands/ls.ts

cli say:bye

Say bye

USAGE
  $ cli say:bye

EXAMPLE
  cli say bye

See code: src/commands/say/bye.ts

cli say:hello [FILE]

Say hello

USAGE
  $ cli say:hello [FILE]

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

EXAMPLES
  cli say hello
  cli say hello --name="tiago"
  cli say hello -n tiago
  cli say hello --force --file asdf.txt

See code: src/commands/say/hello.ts

cli update [CHANNEL]

update the cli CLI

USAGE
  $ cli update [CHANNEL]

See code: @oclif/plugin-update

Keywords

FAQs

Package last updated on 25 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc