PluginCliCommandsProvider · packages/server/src/plugin/cli-commands.ts:494

PluginCliCommandsProvider

http-routes

Owns the slot; serves it at /api/cli/commands. The contributions are read off the slot at boot; each call attributes them to the packages of the plugin host as it is then.

API

contributes: {
  "HttpModule.routes": [
    {
      "id": "PluginCliCommandsProvider.routes",
      "prefix": "/api/cli/commands",
      "auth": "user",
      "order": 66
    }
  ]
}

Code Half (@Bind)

@Bind("PluginCliCommandsProvider.routes") routes!: Hono<AppEnv>;

Endpoints (2)

GET

/api/cli/commands

PluginCliCommandsProvider.routes · cli-commands.ts:427
POST

/api/cli/commands/run

PluginCliCommandsProvider.routes · cli-commands.ts:439