The ScoutOS CLI allows one to interact with and update Scout workflows via CLI commands.
-
You can install the ScoutOS CLI using one of the following methods:
- Automatic Installation:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/scoutos/homebrew-scoutos-cli/main/install.sh)"- Manual Installation:
brew tap scoutos/scoutos-cli brew install scoutos-cli
-
Now you should be able to use
scoutfrom your system! Try runningscout --helpto see if it works.
-
You can install the ScoutOS CLI using one of the following methods:
- Automatic Installation:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/scoutos/homebrew-scoutos-cli/main/install.sh)"- Manual Installation:
brew tap scoutos/scoutos-cli brew install scoutos-cli
-
Now you should be able to use
scoutfrom your system! Try runningscout --helpto see if it works.
-
Download the Windows executable from the Latest Release.
-
Move and authorize the downloaded file:
# Move & rename executable
move scout-cli.exe C:\Windows\System32\scout.exe-
Now you should be able to use
scoutfrom your system! Try runningscout --helpto see if it works. -
If you want to remove the CLI, you can run:
del C:\Windows\System32\scout.exe- Note: You may have to grant the CLI permissions to write, read, and delete on your system.
icacls C:\Windows\System32\scout.exe /grant Everyone:F
Authenticate your local environment with:
scout linkThis will securely connect your CLI to your Scout account.
To start a new Scout project in your local directory, run:
scout initThe CLI will walk you through the setup process.
To run a specific workflow, use the following command:
scout workflows run <workflow_folder>Replace <workflow_folder> with the folder name of the workflow you want to run
To deploy a workflow, use the following command:
scout workflows deploy <workflow_folder>A Scout AI Workflows as Code project follows a structured hierarchy:
/workflows
├── workflow_1/
│ ├── workflow.yml
│ ├── inputs/
│ │ ├── default.json
│ ├── meta.ts
│
├── workflow_2/
│ ├── workflow.yml
│ ├── inputs/
│ │ ├── default.json
│ ├── meta.ts
│
└── scout.config.ts
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.
- Clone and setup:
git clone [email protected]:scoutos/scout-cli.git
cd scout-cli- Install prerequisites:
- Now you should be able to run the code locally:
deno task dev --helpdeno task dev workflows deploy --config ./examples/starter/workflows/source_mapping.yml- Now you should be able to use
scoutfrom your system! Trying runningscout --helpto see if it works. - If you want to remove the cli you can run
sudo rm /usr/local/bin/scout. - Note: You may have to grant the cli permissions to write, read, delete to your system.