Giter Site home page Giter Site logo

example-multi-ts's Introduction

oclif CLI

Version Downloads/week License

๐Ÿ—’ Description

This is the oclif CLI for the Open CLI Framework, that supports the development of oclif plugins and CLIs.

See the docs for more information.

๐Ÿš€ Getting Started Tutorial

The Getting Started tutorial is a step-by-step guide to introduce you to oclif. If you have not developed anything in a command line before, this tutorial is a great place to get started.

See Usage below for an overview of the oclif CLI.

๐Ÿ“Œ Requirements

Currently, Node 18+ is supported. We support the LTS versions of Node. You can add the node package to your CLI to ensure users are running a specific version of Node.

๐Ÿ“Œ Migrating from V1

If you have been using version 1 of the oclif CLI there are some important differences to note when using the latest version.

Breaking Changes

  • oclif multi, oclif plugin, and oclif single have all been removed in favor of oclif generate, which generates an oclif based CLI using the hello-world example repo.
    • The reason is that there's not enough of a meaningful difference between a "multi command cli", a "single command cli", and a "plugin" to justify the maintenance cost. The generated CLI can be easily used for any of those use cases.
  • oclif hook is now oclif generate:hook
  • oclif command is now oclif generate:command

New Commands

Version 2 now includes all the commands from the oclif-dev CLI. This means that you can now use a single CLI for all your oclif needs. These commands include:

  • oclif manifest
  • oclif pack
  • oclif pack:deb
  • oclif pack:macos
  • oclif pack:win
  • oclif upload (formerly known as oclif-dev publish)
  • oclif upload:deb (formerly known as oclif-dev publish:deb)
  • oclif upload:macos (formerly known as oclif-dev publish:macos)
  • oclif upload:win (formerly known as oclif-dev publish:win)
  • oclif readme

๐Ÿ— Usage

Creating a CLI:

$ npx oclif generate mynewcli
? npm package name (mynewcli): mynewcli
$ cd mynewcli
$ ./bin/run.js --version
mynewcli/0.0.0 darwin-x64 node-v9.5.0
$ ./bin/run.js --help
USAGE
  $ mynewcli [COMMAND]

COMMANDS
  hello
  help   display help for mynewcli

$ ./bin/run.js hello world
hello world! (./src/commands/hello/world.ts)

๐Ÿ“š Examples

๐Ÿ”จ Commands

Command Topics

๐Ÿš€ Contributing

See the contributing guide.

๐Ÿญ Related Repositories

  • @oclif/core - Base library for oclif. This can be used directly without the generator.
  • @oclif/test - Test helper for oclif.

๐Ÿฆ” Learn More

example-multi-ts's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar jdx avatar oclif-bot avatar rodesp avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

example-multi-ts's Issues

Installing from source results in globby [MODULE_NOT_FOUND] error

Reproduction:

$ git clone [email protected]:oclif/example-multi-ts.git
$ cd example-multi-ts/
$ npm i -g
$ example-multi-ts --help

(node:207576) [MODULE_NOT_FOUND] Error Plugin: @oclif/example-multi-ts: Cannot find module 'globby'
Require stack:
- /home/sf/Sync/informal-systems/tmp/example-multi-ts/node_modules/@oclif/config/lib/plugin.js
- /home/sf/Sync/informal-systems/tmp/example-multi-ts/node_modules/@oclif/config/lib/config.js
- /home/sf/Sync/informal-systems/tmp/example-multi-ts/node_modules/@oclif/config/lib/index.js
- /home/sf/Sync/informal-systems/tmp/example-multi-ts/node_modules/@oclif/command/lib/command.js
- /home/sf/Sync/informal-systems/tmp/example-multi-ts/node_modules/@oclif/command/lib/index.js
- /home/sf/Sync/informal-systems/tmp/example-multi-ts/bin/run
module: @oclif/[email protected]
task: not loading commands, globby not found
plugin: @oclif/example-multi-ts
root: /home/sf/Sync/informal-systems/tmp/example-multi-ts
See more details with DEBUG=*
example multi-command CLI built with typescript

VERSION
  @oclif/example-multi-ts/1.10.7 linux-x64 node-v13.10.1

USAGE
  $ example-multi-ts [COMMAND]

COMMANDS
  help  display help for example-multi-ts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.