-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/state-error
- Loading branch information
Showing
8 changed files
with
108 additions
and
132 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
description: Using and Developing plugins | ||
--- | ||
|
||
# Using Plugins | ||
|
||
Ignite plugins offer a way to extend the functionality of the Ignite CLI. There | ||
are two core concepts within plugins : `Commands` and `Hooks`. Where `Commands` | ||
extend the cli's functionality, and `Hooks` extend existing command | ||
functionality. | ||
|
||
Plugins are registered in an Ignite scaffolded Blockchain project through the | ||
`plugins.yml`, or globally through `$HOME/.ignite/plugins/plugins.yml`. | ||
|
||
To use a plugin within your project, execute the following command inside the | ||
project directory: | ||
|
||
```sh | ||
ignite plugin add github.com/project/cli-plugin | ||
``` | ||
|
||
The plugin will be available only when running `ignite` inside the project | ||
directory. | ||
|
||
To use a plugin globally on the other hand, execute the following command: | ||
|
||
```sh | ||
ignite plugin add -g github.com/project/cli-plugin | ||
``` | ||
|
||
The command will compile the plugin and make it immediately available to the | ||
`ignite` command lists. | ||
|
||
## Listing installed plugins | ||
|
||
When in an ignite scaffolded blockchain you can use the command `ignite plugin | ||
list` to list all plugins and there statuses. | ||
|
||
## Updating plugins | ||
|
||
When a plugin in a remote repository releases updates, running `ignite plugin | ||
update <path/to/plugin>` will update a specific plugin declared in your | ||
project's `config.yml`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"label": "Plugins", | ||
"position": 7, | ||
"link": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters