Skip to content

CLI

Example Usage#

Running a Turbo AI App in Development Mode#

Turbo AI dev path/to/app.py

Explanation: This command runs the Turbo AI app in development mode. It automatically detects the Turbo AI app within the specified Python file and runs it with live reload enabled. This is useful for making changes to your code and seeing updates in real-time without needing to restart the server manually. If no file path is provided, Turbo AI will try to locate common file names such as main.py, app.py, or api.py.

Running a Turbo AI App with a Specific Workflow#

Turbo AI run path/to/app.py --workflow simple_workflow

Explanation: This command runs the Turbo AI app in production mode and specifies a particular workflow (simple_workflow) to execute. This is helpful when you have multiple workflows in your app, and you want to run a specific one. The app can automatically detect the workflow unless you explicitly name it with the --workflow option.

Setting an Initial Message#

Turbo AI run path/to/app.py --initial_message "Hello, let's start!"

Explanation: This command allows you to run the app and provide a custom initial message to send to the workflow when it starts. The --initial_message option is useful when you want to test how your agents respond to different starting inputs, simulating various conversation scenarios. If no message is provided, a default message will be sent.