Build on INC Platform
SDK & CLI
Reference and tools for the local platform preview.
JavaScript SDK
A dependency-free ES module using fetch. Resource operations, actions, and file uploads are supported.
Download SDKINC CLI
A Node.js command-line tool for listing, creating, updating, and deleting your resources.
Download CLIUse the SDK
import { IncClient } from './inc-client.mjs';
const inc = new IncClient({ baseUrl: 'http://localhost:3000', apiKey: process.env.INC_API_KEY });
const { resources } = await inc.list();
const { resource } = await inc.create({ service: 'work', kind: 'Task', name: 'Ship the preview', config: { priority: 'High' } });
await inc.action(resource.id, 'complete');Use the CLI
export INC_BASE_URL=http://localhost:3000
export INC_API_KEY=your_scoped_key
node inc.mjs list
node inc.mjs get RESOURCE_ID
node inc.mjs create '{"service":"data","kind":"Collection","name":"Customers","config":{}}'
node inc.mjs action RESOURCE_ID add-record '{"record":{"name":"Amina"}}'Requires Node.js 20 or newer. Keep API keys in server-side environment variables. The SDK is a local preview and is not published to a package registry.