Merge pull request #3915 from dokku/plugin-installed

Add ability to check if a plugin has been installed
This commit is contained in:
Jose Diaz-Gonzalez
2020-04-01 20:07:00 -04:00
committed by GitHub
4 changed files with 32 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
plugin:disable <name> # Disable an installed plugin (third-party only)
plugin:enable <name> # Enable a previously disabled plugin
plugin:install [--core|git-url [--committish tag|branch|commit|--name custom-plugin-name]] # Optionally download git-url (with custom tag/committish) & run install trigger for active plugins (or only core ones)
plugin:installed <name> # Checks if a plugin is installed
plugin:install-dependencies [--core] # Run install-dependencies trigger for active plugins (or only core ones)
plugin:list # Print active plugins
plugin:trigger <args...>. # Trigger an arbitrary plugin hook
@@ -63,6 +64,12 @@ plugn: dev
trace 0.20.0 enabled dokku core trace plugin
```
You can check if a plugin has been installed via the `plugin:installed` command:
```shell
dokku plugin:installed postgres
```
Installing a plugin is easy as well using the `plugin:install` command. This command will also trigger the `install` pluginhook on all existing plugins.
```shell