Go plugin hello-world
Editions: Open Source · Free Cloud · Pro
Copy from sdk/go-plugin-build-sdk/examples/main.go. For a production plugin (GraphQL, REST, Console UI, publish), see the Cloudinary walkthrough.
- Build the plugin binary for the engine OS/arch.
- Place it under the engine plugin directory with
config.ymldeclaringcapabilities(nottype). - Restart engine or
POST /system/plugin/:id/restartso the host loads it. - In Console: Project Settings → Plugins → Add from catalog → Activate on one project.
- Call project GraphQL (
plg_*) or REST/{pluginId}/…with that project id. A second project without activation must not see the fields/routes. - Deactivate from the same settings page. Cache rebuilds;
plg_*disappears. - Cleanup: deactivate, then delete the plugin directory /
DELETE /system/plugin/:idas operator.
Handshake protocol_version stays 1. Do not add RPC methods for install vs activate.