Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mingderwang/mynewcli-template
typscript cli template
https://github.com/mingderwang/mynewcli-template
Last synced: 3 days ago
JSON representation
typscript cli template
- Host: GitHub
- URL: https://github.com/mingderwang/mynewcli-template
- Owner: mingderwang
- License: mit
- Created: 2022-05-19T02:55:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T02:59:32.000Z (over 1 year ago)
- Last Synced: 2023-04-17T12:51:59.841Z (over 1 year ago)
- Language: TypeScript
- Size: 684 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
oclif-hello-world
=================oclif example Hello World CLI
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/oclif-hello-world.svg)](https://npmjs.org/package/oclif-hello-world)
[![CircleCI](https://circleci.com/gh/oclif/hello-world/tree/main.svg?style=shield)](https://circleci.com/gh/oclif/hello-world/tree/main)
[![Downloads/week](https://img.shields.io/npm/dw/oclif-hello-world.svg)](https://npmjs.org/package/oclif-hello-world)
[![License](https://img.shields.io/npm/l/oclif-hello-world.svg)](https://github.com/oclif/hello-world/blob/main/package.json)* [Usage](#usage)
* [Commands](#commands)# Usage
```sh-session
$ npm install -g mynewcli
$ mynewcli COMMAND
running command...
$ mynewcli (--version)
mynewcli/0.0.0 darwin-arm64 node-v16.15.0
$ mynewcli --help [COMMAND]
USAGE
$ mynewcli COMMAND
...
```# Commands
* [`mynewcli hello PERSON`](#mynewcli-hello-person)
* [`mynewcli hello world`](#mynewcli-hello-world)
* [`mynewcli help [COMMAND]`](#mynewcli-help-command)
* [`mynewcli plugins`](#mynewcli-plugins)
* [`mynewcli plugins:install PLUGIN...`](#mynewcli-pluginsinstall-plugin)
* [`mynewcli plugins:inspect PLUGIN...`](#mynewcli-pluginsinspect-plugin)
* [`mynewcli plugins:install PLUGIN...`](#mynewcli-pluginsinstall-plugin-1)
* [`mynewcli plugins:link PLUGIN`](#mynewcli-pluginslink-plugin)
* [`mynewcli plugins:uninstall PLUGIN...`](#mynewcli-pluginsuninstall-plugin)
* [`mynewcli plugins:uninstall PLUGIN...`](#mynewcli-pluginsuninstall-plugin-1)
* [`mynewcli plugins:uninstall PLUGIN...`](#mynewcli-pluginsuninstall-plugin-2)
* [`mynewcli plugins update`](#mynewcli-plugins-update)## `mynewcli hello PERSON`
Say hello
```
USAGE
$ mynewcli hello [PERSON] -fARGUMENTS
PERSON Person to say hello toFLAGS
-f, --from= (required) Whom is saying helloDESCRIPTION
Say helloEXAMPLES
$ oex hello friend --from oclif
hello friend from oclif! (./src/commands/hello/index.ts)
```_See code: [dist/commands/hello/index.ts](https://github.com/IPDID/hello-world/blob/v0.0.0/dist/commands/hello/index.ts)_
## `mynewcli hello world`
Say hello world
```
USAGE
$ mynewcli hello worldDESCRIPTION
Say hello worldEXAMPLES
$ oex hello world
hello world! (./src/commands/hello/world.ts)
```## `mynewcli help [COMMAND]`
Display help for mynewcli.
```
USAGE
$ mynewcli 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 mynewcli.
```_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.10/src/commands/help.ts)_
## `mynewcli plugins`
List installed plugins.
```
USAGE
$ mynewcli plugins [--core]FLAGS
--core Show core plugins.DESCRIPTION
List installed plugins.EXAMPLES
$ mynewcli plugins
```_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/index.ts)_
## `mynewcli plugins:install PLUGIN...`
Installs a plugin into the CLI.
```
USAGE
$ mynewcli plugins:install PLUGIN...ARGUMENTS
PLUGIN Plugin to install.FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Installs a plugin into the CLI.Can be installed from npm or a git url.
Installation of a user-installed plugin will override a core plugin.
e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
the CLI without the need to patch and update the whole CLI.ALIASES
$ mynewcli plugins addEXAMPLES
$ mynewcli plugins:install myplugin$ mynewcli plugins:install https://github.com/someuser/someplugin
$ mynewcli plugins:install someuser/someplugin
```## `mynewcli plugins:inspect PLUGIN...`
Displays installation properties of a plugin.
```
USAGE
$ mynewcli plugins:inspect PLUGIN...ARGUMENTS
PLUGIN [default: .] Plugin to inspect.FLAGS
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Displays installation properties of a plugin.EXAMPLES
$ mynewcli plugins:inspect myplugin
```## `mynewcli plugins:install PLUGIN...`
Installs a plugin into the CLI.
```
USAGE
$ mynewcli plugins:install PLUGIN...ARGUMENTS
PLUGIN Plugin to install.FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Installs a plugin into the CLI.Can be installed from npm or a git url.
Installation of a user-installed plugin will override a core plugin.
e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
the CLI without the need to patch and update the whole CLI.ALIASES
$ mynewcli plugins addEXAMPLES
$ mynewcli plugins:install myplugin$ mynewcli plugins:install https://github.com/someuser/someplugin
$ mynewcli plugins:install someuser/someplugin
```## `mynewcli plugins:link PLUGIN`
Links a plugin into the CLI for development.
```
USAGE
$ mynewcli plugins:link PLUGINARGUMENTS
PATH [default: .] path to pluginFLAGS
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Links a plugin into the CLI for development.Installation of a linked plugin will override a user-installed or core plugin.
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
command will override the user-installed or core plugin implementation. This is useful for development work.EXAMPLES
$ mynewcli plugins:link myplugin
```## `mynewcli plugins:uninstall PLUGIN...`
Removes a plugin from the CLI.
```
USAGE
$ mynewcli plugins:uninstall PLUGIN...ARGUMENTS
PLUGIN plugin to uninstallFLAGS
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Removes a plugin from the CLI.ALIASES
$ mynewcli plugins unlink
$ mynewcli plugins remove
```## `mynewcli plugins:uninstall PLUGIN...`
Removes a plugin from the CLI.
```
USAGE
$ mynewcli plugins:uninstall PLUGIN...ARGUMENTS
PLUGIN plugin to uninstallFLAGS
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Removes a plugin from the CLI.ALIASES
$ mynewcli plugins unlink
$ mynewcli plugins remove
```## `mynewcli plugins:uninstall PLUGIN...`
Removes a plugin from the CLI.
```
USAGE
$ mynewcli plugins:uninstall PLUGIN...ARGUMENTS
PLUGIN plugin to uninstallFLAGS
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Removes a plugin from the CLI.ALIASES
$ mynewcli plugins unlink
$ mynewcli plugins remove
```## `mynewcli plugins update`
Update installed plugins.
```
USAGE
$ mynewcli plugins update [-h] [-v]FLAGS
-h, --help Show CLI help.
-v, --verboseDESCRIPTION
Update installed plugins.
```