You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, if using a ``pyproject.toml`` file instead:
101
+
102
+
.. code-block:: python
103
+
104
+
# file: pyproject.toml
105
+
# Noter that this example uses poetry, other Python projects may differ in
106
+
# how they expect entry_points to be specified
107
+
[tool.poetry.plugins."pygeoapi"]
108
+
my-plugin ='myplugin.cli:my_cli_command'
109
+
110
+
111
+
After having installed this plugin, you should now be able to call the CLI command by running:
112
+
113
+
.. code-block:: sh
114
+
115
+
$ pygeoapi plugins super-command
116
+
Hello, this is my custom pygeoapi CLI command!
117
+
118
+
69
119
.. note:: The United States Geological Survey has created a Cookiecutter project for creating pygeoapi plugins. See the `pygeoapi-plugin-cookiecutter`_ project to get started.
0 commit comments