CLI Overview
The ScoutOS CLI allows you to interact with and update Scout workflows via CLI commands.
Getting Started
The ScoutOS CLI is a powerful tool that helps you create, manage, and deploy AI workflows. Here’s a quick overview to get you started:
- Installation: First, install the CLI using the platform-specific instructions below.
- Authentication: Run
scout link
to connect the CLI to your Scout account. - Create a Project: Use
scout init
to create a new Scout project. - Basic Commands:
For detailed instructions, follow the setup guide for your operating system below.
Setup
macOS
You can install the ScoutOS CLI using one of the following methods:
-
Automatic Installation:
-
Manual Installation:
Now you should be able to use scout
from your system! Try running scout --help
to see if it works.
Linux
You can install the ScoutOS CLI using one of the following methods:
-
Automatic Installation:
-
Manual Installation:
Now you should be able to use scout
from your system! Try running scout --help
to see if it works.
Windows
-
Download the Windows executable from the Latest Release.
-
Move and authorize the downloaded file:
Now you should be able to use scout
from your system! Try running scout --help
to see if it works.
Note: You may have to grant the CLI permissions to write, read, and delete on your system.
To remove the CLI:
Connect to Your Scout Account
Authenticate your local environment with:
This will securely connect your CLI to your Scout account.
Initialize a Scout Project
To start a new Scout project in your local directory, run:
The CLI will walk you through the setup process.
Run a Workflow
To run a specific workflow, use the following command:
Replace <workflow_folder>
with the folder name of the workflow you want to run.
Deploy a Workflow
To deploy a workflow, use the following command:
AI Workflow Project Structure
A Scout AI Workflows as Code project follows a structured hierarchy:
Key Components:
workflow.yml
– Defines each AI workflow.inputs/default.json
– Stores default input parameters for the workflow.meta.ts
– Metadata and additional configuration for the workflow.scout.config.js
– Configuration settings for your Scout project.
Local Development
Clone and setup:
Install prerequisites:
- Install Deno
- Setup your development IDE environment
Now you should be able to run the code locally:
Now you should be able to use scout
from your system! Try running scout --help
to see if it works.
If you want to remove the CLI, you can run:
Note: You may have to grant the CLI permissions to write, read, and delete on your system.