JS Client 12.1: new features for Keycloak, Matomo, Metabase and Otoroshi
Clever Cloud JS client 12.1 is available. This release extends the new client structure introduced in v12 with dedicated commands for four managed add-ons: Keycloak, Matomo, Metabase and Otoroshi.
New add-on commands
You can now manage the lifecycle of these services directly from the client. For Matomo, the release adds RebootMatomoCommand and RebuildMatomoCommand to reboot the add-on or rebuild it without cache, and exposes the associated Materia KV identifier through resource.kvId in the GetMatomoInfoCommand output. Keycloak, Metabase and Otoroshi each get their own dedicated command set on the same model.
import { CcApiClient } from "@clevercloud/client/cc-api-client.js";
import { GetMatomoInfoCommand } from "@clevercloud/client/cc-api-commands/matomo/get-matomo-info-command.js";
const client = new CcApiClient({
authMethod: {
type: 'api-token',
apiToken: process.env.CLEVER_API_TOKEN,
},
});
const info = await client.send(new GetMatomoInfoCommand({ id: 'addon_xxxxxxxx' }));
console.log(info.resource.kvId);Bug fixes
- Events: the events client now uses
ws://when the API host is served overhttp://, restoring support for local development setups. - Matomo:
GetMatomoInfoCommandno longer sorts available versions, preserving the order returned by the API.
How to upgrade
Add or update @clevercloud/client in your project:
npm install @clevercloud/client@12.1.0Refer to the new client documentation for usage details and share your feedback on the GitHub repository.

