Skip to content

cloudquery/plugin-sdk-javascript

CloudQuery Plugin SDK for JavaScript

This is the high-level package to use for developing CloudQuery plugins in JavaScript.

Prerequisites

Node.js 20 or higher. Install Node.js from here.

Setup

Install dependencies

npm ci

Build

npm run build

Test

npm test

Start a local memory based plugin server

npm run dev -- serve

Package as a Docker image

npm run dev -- package -m test "v1.0.0" . --dist-dir dist-dir

Formatting and Linting

# This is just to check if the code is formatted
npm run format:check

# Automatically format code
npm run format

# Lint
npm run lint