Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 598 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 598 Bytes

Node.js Package

civots

Typescript client for Civo API

import { Civo } from 'civojs';

const client = new Civo({
  apiKey: '<CIVO_API_KEY>',
  regionCode: '<REGION_CODE>', // 'NYC1' by default
});

const network = await client.networks.getDefault();

const clusters = await client.kubernetes.listClusters();

const cluster = await client.kubernetes.createCluster({
  name: 'mycluster',
  network_id: network.id,
});