Here’s a deep dive on using the CLI for AI Dev.

Usage

In the most basic form, you can run the CLI using npx, and it’ll prompt you for information.

npx ai-dev@latest

See Getting Started for information on this.

Non-Interactive Usage

However, what if you’ve decided to write a script or CI runner that calls Magnet Agent?

That’s what our non-interactive CLI is for:

OPENAI_API_KEY=your_openai_api_key_here npx ai-dev@latest -f ./ -t "Your task here." -o ./output

Tasks

It’s possible to pass tasks to the CLI in two formats:

Parameters