SDK API

Introduction

The SDK is an optional Node.js package that accelerates the op development process and enables integration with our powerful platform features. It includes two modules, ux and sdk:

const { ux, sdk } = require('@cto.ai/sdk');

The ux module is a collection of command-line utilities that help you build your own professional Node.js CLI in no time. It includes the following components:

  • question prompts
  • spinners & loading bars
  • colors
  • tree & table layouts, and more...

The sdk module is a set of tools that allow you to:

  • manage state and config for your teams and users
  • access the file-system on your user's host machine
  • track events and analytics for your op users

Installation

$ npm install @cto.ai/sdk

Usage:

const { sdk, ux } from '@cto.ai/sdk';

SDK Module Docs

SDK

UX Module Docs

UX