You can also check out our video tutorial.

Prerequisites

1. Install the CLI

Run:

npm install -g @cto.ai/ops

To check installation, run:

ops

If you see a list of commands as output, you're good to go!

2. Create account and sign in

If you have already created an account, you can sign in:

ops account:signin

Otherwise, you can create a new account:

ops account:signup

Follow the prompts to set up your account.

3. Explore and run

Get started by exploring the current Ops. Run:

ops search

Then try:

ops run @cto.ai/hello-world

The hello-world Op demonstrates some of the features of the SDK; more information about what you can do with the SDK is coming soon.

4. Create an op

Run:

ops init

You will be prompted to create either a Command or a Workflow. For this tutorial, select Command.

After providing a name and description for your Op, a new directory will be created which contains the source code.

5. Run your op

Run:

ops run my-first-op

The run command builds the op first, then runs it.