https://github.com/oclif/plugin-test-esbuild-single
https://github.com/oclif/plugin-test-esbuild-single
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oclif/plugin-test-esbuild-single
- Owner: oclif
- Created: 2024-02-29T22:01:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-05-23T10:18:15.000Z (2 months ago)
- Last Synced: 2026-05-23T12:17:02.356Z (2 months ago)
- Language: TypeScript
- Size: 4.75 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
plugin-test-esbuild-single
=================
Example of using `esbuild` to bundle a CLI into a single executable. **This is not an officially support use case. There may be severe limitations to using this approach.**
[](https://oclif.io)
[](https://circleci.com/gh/oclif/hello-world/tree/main)
[](https://github.com/oclif/hello-world/blob/main/LICENSE)
* [Usage](#usage)
* [Commands](#commands)
# Usage
```sh-session
$ npm install -g @oclif/plugin-test-esbuild-single
$ bundle COMMAND
running command...
$ bundle (--version)
@oclif/plugin-test-esbuild-single/0.2.4 darwin-arm64 node-v20.11.0
$ bundle --help [COMMAND]
USAGE
$ bundle COMMAND
...
```
# Commands
- [plugin-test-esbuild-single](#plugin-test-esbuild-single)
- [Usage](#usage)
- [Commands](#commands)
- [`bundle esbuild [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG]`](#bundle-esbuild-optionalarg-defaultarg-defaultfnarg)
- [`bundle hello PERSON`](#bundle-hello-person)
- [`bundle hello alias`](#bundle-hello-alias)
- [`bundle hello world`](#bundle-hello-world)
- [`bundle help [COMMANDS]`](#bundle-help-commands)
- [`bundle plugins`](#bundle-plugins)
- [`bundle plugins:install PLUGIN...`](#bundle-pluginsinstall-plugin)
- [`bundle plugins:inspect PLUGIN...`](#bundle-pluginsinspect-plugin)
- [`bundle plugins:install PLUGIN...`](#bundle-pluginsinstall-plugin-1)
- [`bundle plugins:link PLUGIN`](#bundle-pluginslink-plugin)
- [`bundle plugins:uninstall PLUGIN...`](#bundle-pluginsuninstall-plugin)
- [`bundle plugins reset`](#bundle-plugins-reset)
- [`bundle plugins:uninstall PLUGIN...`](#bundle-pluginsuninstall-plugin-1)
- [`bundle plugins:uninstall PLUGIN...`](#bundle-pluginsuninstall-plugin-2)
- [`bundle plugins update`](#bundle-plugins-update)
## `bundle esbuild [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG]`
```
USAGE
$ bundle esbuild [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--json] [--optionalString ]
[--defaultString ] [--defaultFnString ]
FLAGS
--defaultFnString= [default: async fn default]
--defaultString= [default: simple string default]
--optionalString=
GLOBAL FLAGS
--json Format output as json.
```
## `bundle hello PERSON`
Say hello
```
USAGE
$ bundle hello PERSON -f
ARGUMENTS
PERSON Person to say hello to
FLAGS
-f, --from= (required) Who is saying hello
DESCRIPTION
Say hello
EXAMPLES
$ oex hello friend --from oclif
hello friend from oclif! (./src/commands/hello/index.ts)
```
## `bundle hello alias`
Say hello world
```
USAGE
$ bundle hello alias
DESCRIPTION
Say hello world
EXAMPLES
$ bundle hello alias
hello world! (./src/commands/hello/world.ts)
```
## `bundle hello world`
Say hello world
```
USAGE
$ bundle hello world
DESCRIPTION
Say hello world
EXAMPLES
$ bundle hello world
hello world! (./src/commands/hello/world.ts)
```
## `bundle help [COMMANDS]`
Display help for bundle.
```
USAGE
$ bundle help [COMMANDS] [-n]
ARGUMENTS
COMMANDS Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for bundle.
```
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.12/src/commands/help.ts)_
## `bundle plugins`
List installed plugins.
```
USAGE
$ bundle plugins [--json] [--core]
FLAGS
--core Show core plugins.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
List installed plugins.
EXAMPLES
$ bundle plugins
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/index.ts)_
## `bundle plugins:install PLUGIN...`
Installs a plugin into the CLI.
```
USAGE
$ bundle plugins add plugins:install PLUGIN...
ARGUMENTS
PLUGIN Plugin to install.
FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-s, --silent Silences yarn output.
-v, --verbose Show verbose yarn output.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
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
$ bundle plugins add
EXAMPLES
$ bundle plugins add myplugin
$ bundle plugins add https://github.com/someuser/someplugin
$ bundle plugins add someuser/someplugin
```
## `bundle plugins:inspect PLUGIN...`
Displays installation properties of a plugin.
```
USAGE
$ bundle plugins inspect PLUGIN...
ARGUMENTS
PLUGIN [default: .] Plugin to inspect.
FLAGS
-h, --help Show CLI help.
-v, --verbose
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Displays installation properties of a plugin.
EXAMPLES
$ bundle plugins inspect myplugin
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/inspect.ts)_
## `bundle plugins:install PLUGIN...`
Installs a plugin into the CLI.
```
USAGE
$ bundle plugins install PLUGIN...
ARGUMENTS
PLUGIN Plugin to install.
FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-s, --silent Silences yarn output.
-v, --verbose Show verbose yarn output.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
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
$ bundle plugins add
EXAMPLES
$ bundle plugins install myplugin
$ bundle plugins install https://github.com/someuser/someplugin
$ bundle plugins install someuser/someplugin
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/install.ts)_
## `bundle plugins:link PLUGIN`
Links a plugin into the CLI for development.
```
USAGE
$ bundle plugins link PLUGIN
ARGUMENTS
PATH [default: .] path to plugin
FLAGS
-h, --help Show CLI help.
-v, --verbose
--[no-]install Install dependencies after linking the plugin.
DESCRIPTION
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
$ bundle plugins link myplugin
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/link.ts)_
## `bundle plugins:uninstall PLUGIN...`
Removes a plugin from the CLI.
```
USAGE
$ bundle plugins remove plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ bundle plugins unlink
$ bundle plugins remove
EXAMPLES
$ bundle plugins remove myplugin
```
## `bundle plugins reset`
Remove all user-installed and linked plugins.
```
USAGE
$ bundle plugins reset [--hard] [--reinstall]
FLAGS
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
--reinstall Reinstall all plugins after uninstalling.
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/reset.ts)_
## `bundle plugins:uninstall PLUGIN...`
Removes a plugin from the CLI.
```
USAGE
$ bundle plugins uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ bundle plugins unlink
$ bundle plugins remove
EXAMPLES
$ bundle plugins uninstall myplugin
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/uninstall.ts)_
## `bundle plugins:uninstall PLUGIN...`
Removes a plugin from the CLI.
```
USAGE
$ bundle plugins unlink plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ bundle plugins unlink
$ bundle plugins remove
EXAMPLES
$ bundle plugins unlink myplugin
```
## `bundle plugins update`
Update installed plugins.
```
USAGE
$ bundle plugins update [-h] [-v]
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Update installed plugins.
```
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/update.ts)_