with yarn:
$ yarn global add sfdx-example-plugin
or with npm:
$ npm install -g sfdx-example-plugin
$ sfdx-example-plugin COMMAND
running command...
$ sfdx-example-plugin (-v|--version|version)
sfdx-example-plugin/0.0.1 (darwin-x64) node-v9.5.0
$ sfdx-example-plugin --help [COMMAND]
USAGE
$ sfdx-example-plugin COMMAND
...
describe the command here
USAGE
$ sfdx-example-plugin hello:foo:bar [FILE]
OPTIONS
-f, --force
-n, --name=name name to print
EXAMPLES
$ oclif-example hello
hello world from ./src/hello.ts!
$ oclif-example hello --name myname
hello myname from .src/hello.ts!
See code: src/commands/hello/foo/bar.ts