···11+MIT License
22+33+Copyright (c) 2019 Salesforce
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+334
oclif/README.md
···11+oclif-hello-world
22+=================
33+44+oclif example Hello World CLI
55+66+[](https://oclif.io)
77+[](https://npmjs.org/package/oclif-hello-world)
88+[](https://circleci.com/gh/oclif/hello-world/tree/main)
99+[](https://npmjs.org/package/oclif-hello-world)
1010+[](https://github.com/oclif/hello-world/blob/main/package.json)
1111+1212+<!-- toc -->
1313+* [Usage](#usage)
1414+* [Commands](#commands)
1515+<!-- tocstop -->
1616+# Usage
1717+<!-- usage -->
1818+```sh-session
1919+$ npm install -g hello-world
2020+$ hello-world COMMAND
2121+running command...
2222+$ hello-world (--version)
2323+hello-world/0.0.0 linux-x64 node-v16.14.2
2424+$ hello-world --help [COMMAND]
2525+USAGE
2626+ $ hello-world COMMAND
2727+...
2828+```
2929+<!-- usagestop -->
3030+# Commands
3131+<!-- commands -->
3232+* [`hello-world hello PERSON`](#hello-world-hello-person)
3333+* [`hello-world hello world`](#hello-world-hello-world)
3434+* [`hello-world help [COMMAND]`](#hello-world-help-command)
3535+* [`hello-world plugins`](#hello-world-plugins)
3636+* [`hello-world plugins:install PLUGIN...`](#hello-world-pluginsinstall-plugin)
3737+* [`hello-world plugins:inspect PLUGIN...`](#hello-world-pluginsinspect-plugin)
3838+* [`hello-world plugins:install PLUGIN...`](#hello-world-pluginsinstall-plugin-1)
3939+* [`hello-world plugins:link PLUGIN`](#hello-world-pluginslink-plugin)
4040+* [`hello-world plugins:uninstall PLUGIN...`](#hello-world-pluginsuninstall-plugin)
4141+* [`hello-world plugins:uninstall PLUGIN...`](#hello-world-pluginsuninstall-plugin-1)
4242+* [`hello-world plugins:uninstall PLUGIN...`](#hello-world-pluginsuninstall-plugin-2)
4343+* [`hello-world plugins update`](#hello-world-plugins-update)
4444+4545+## `hello-world hello PERSON`
4646+4747+Say hello
4848+4949+```
5050+USAGE
5151+ $ hello-world hello [PERSON] -f <value>
5252+5353+ARGUMENTS
5454+ PERSON Person to say hello to
5555+5656+FLAGS
5757+ -f, --from=<value> (required) Whom is saying hello
5858+5959+DESCRIPTION
6060+ Say hello
6161+6262+EXAMPLES
6363+ $ oex hello friend --from oclif
6464+ hello friend from oclif! (./src/commands/hello/index.ts)
6565+```
6666+6767+_See code: [dist/commands/hello/index.ts](https://github.com/kou029w/hello-world/blob/v0.0.0/dist/commands/hello/index.ts)_
6868+6969+## `hello-world hello world`
7070+7171+Say hello world
7272+7373+```
7474+USAGE
7575+ $ hello-world hello world
7676+7777+DESCRIPTION
7878+ Say hello world
7979+8080+EXAMPLES
8181+ $ oex hello world
8282+ hello world! (./src/commands/hello/world.ts)
8383+```
8484+8585+## `hello-world help [COMMAND]`
8686+8787+Display help for hello-world.
8888+8989+```
9090+USAGE
9191+ $ hello-world help [COMMAND] [-n]
9292+9393+ARGUMENTS
9494+ COMMAND Command to show help for.
9595+9696+FLAGS
9797+ -n, --nested-commands Include all nested commands in the output.
9898+9999+DESCRIPTION
100100+ Display help for hello-world.
101101+```
102102+103103+_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.10/src/commands/help.ts)_
104104+105105+## `hello-world plugins`
106106+107107+List installed plugins.
108108+109109+```
110110+USAGE
111111+ $ hello-world plugins [--core]
112112+113113+FLAGS
114114+ --core Show core plugins.
115115+116116+DESCRIPTION
117117+ List installed plugins.
118118+119119+EXAMPLES
120120+ $ hello-world plugins
121121+```
122122+123123+_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/index.ts)_
124124+125125+## `hello-world plugins:install PLUGIN...`
126126+127127+Installs a plugin into the CLI.
128128+129129+```
130130+USAGE
131131+ $ hello-world plugins:install PLUGIN...
132132+133133+ARGUMENTS
134134+ PLUGIN Plugin to install.
135135+136136+FLAGS
137137+ -f, --force Run yarn install with force flag.
138138+ -h, --help Show CLI help.
139139+ -v, --verbose
140140+141141+DESCRIPTION
142142+ Installs a plugin into the CLI.
143143+144144+ Can be installed from npm or a git url.
145145+146146+ Installation of a user-installed plugin will override a core plugin.
147147+148148+ e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
149149+ will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
150150+ the CLI without the need to patch and update the whole CLI.
151151+152152+ALIASES
153153+ $ hello-world plugins add
154154+155155+EXAMPLES
156156+ $ hello-world plugins:install myplugin
157157+158158+ $ hello-world plugins:install https://github.com/someuser/someplugin
159159+160160+ $ hello-world plugins:install someuser/someplugin
161161+```
162162+163163+## `hello-world plugins:inspect PLUGIN...`
164164+165165+Displays installation properties of a plugin.
166166+167167+```
168168+USAGE
169169+ $ hello-world plugins:inspect PLUGIN...
170170+171171+ARGUMENTS
172172+ PLUGIN [default: .] Plugin to inspect.
173173+174174+FLAGS
175175+ -h, --help Show CLI help.
176176+ -v, --verbose
177177+178178+DESCRIPTION
179179+ Displays installation properties of a plugin.
180180+181181+EXAMPLES
182182+ $ hello-world plugins:inspect myplugin
183183+```
184184+185185+## `hello-world plugins:install PLUGIN...`
186186+187187+Installs a plugin into the CLI.
188188+189189+```
190190+USAGE
191191+ $ hello-world plugins:install PLUGIN...
192192+193193+ARGUMENTS
194194+ PLUGIN Plugin to install.
195195+196196+FLAGS
197197+ -f, --force Run yarn install with force flag.
198198+ -h, --help Show CLI help.
199199+ -v, --verbose
200200+201201+DESCRIPTION
202202+ Installs a plugin into the CLI.
203203+204204+ Can be installed from npm or a git url.
205205+206206+ Installation of a user-installed plugin will override a core plugin.
207207+208208+ e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
209209+ will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
210210+ the CLI without the need to patch and update the whole CLI.
211211+212212+ALIASES
213213+ $ hello-world plugins add
214214+215215+EXAMPLES
216216+ $ hello-world plugins:install myplugin
217217+218218+ $ hello-world plugins:install https://github.com/someuser/someplugin
219219+220220+ $ hello-world plugins:install someuser/someplugin
221221+```
222222+223223+## `hello-world plugins:link PLUGIN`
224224+225225+Links a plugin into the CLI for development.
226226+227227+```
228228+USAGE
229229+ $ hello-world plugins:link PLUGIN
230230+231231+ARGUMENTS
232232+ PATH [default: .] path to plugin
233233+234234+FLAGS
235235+ -h, --help Show CLI help.
236236+ -v, --verbose
237237+238238+DESCRIPTION
239239+ Links a plugin into the CLI for development.
240240+241241+ Installation of a linked plugin will override a user-installed or core plugin.
242242+243243+ e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
244244+ command will override the user-installed or core plugin implementation. This is useful for development work.
245245+246246+EXAMPLES
247247+ $ hello-world plugins:link myplugin
248248+```
249249+250250+## `hello-world plugins:uninstall PLUGIN...`
251251+252252+Removes a plugin from the CLI.
253253+254254+```
255255+USAGE
256256+ $ hello-world plugins:uninstall PLUGIN...
257257+258258+ARGUMENTS
259259+ PLUGIN plugin to uninstall
260260+261261+FLAGS
262262+ -h, --help Show CLI help.
263263+ -v, --verbose
264264+265265+DESCRIPTION
266266+ Removes a plugin from the CLI.
267267+268268+ALIASES
269269+ $ hello-world plugins unlink
270270+ $ hello-world plugins remove
271271+```
272272+273273+## `hello-world plugins:uninstall PLUGIN...`
274274+275275+Removes a plugin from the CLI.
276276+277277+```
278278+USAGE
279279+ $ hello-world plugins:uninstall PLUGIN...
280280+281281+ARGUMENTS
282282+ PLUGIN plugin to uninstall
283283+284284+FLAGS
285285+ -h, --help Show CLI help.
286286+ -v, --verbose
287287+288288+DESCRIPTION
289289+ Removes a plugin from the CLI.
290290+291291+ALIASES
292292+ $ hello-world plugins unlink
293293+ $ hello-world plugins remove
294294+```
295295+296296+## `hello-world plugins:uninstall PLUGIN...`
297297+298298+Removes a plugin from the CLI.
299299+300300+```
301301+USAGE
302302+ $ hello-world plugins:uninstall PLUGIN...
303303+304304+ARGUMENTS
305305+ PLUGIN plugin to uninstall
306306+307307+FLAGS
308308+ -h, --help Show CLI help.
309309+ -v, --verbose
310310+311311+DESCRIPTION
312312+ Removes a plugin from the CLI.
313313+314314+ALIASES
315315+ $ hello-world plugins unlink
316316+ $ hello-world plugins remove
317317+```
318318+319319+## `hello-world plugins update`
320320+321321+Update installed plugins.
322322+323323+```
324324+USAGE
325325+ $ hello-world plugins update [-h] [-v]
326326+327327+FLAGS
328328+ -h, --help Show CLI help.
329329+ -v, --verbose
330330+331331+DESCRIPTION
332332+ Update installed plugins.
333333+```
334334+<!-- commandsstop -->
+17
oclif/bin/dev
···11+#!/usr/bin/env node
22+33+const oclif = require('@oclif/core')
44+55+const path = require('path')
66+const project = path.join(__dirname, '..', 'tsconfig.json')
77+88+// In dev mode -> use ts-node and dev plugins
99+process.env.NODE_ENV = 'development'
1010+1111+require('ts-node').register({project})
1212+1313+// In dev mode, always show stack traces
1414+oclif.settings.debug = true;
1515+1616+// Start the CLI
1717+oclif.run().then(oclif.flush).catch(oclif.Errors.handle)