Skip to content

Deploying Functions

Functions are typically deployed as part of their container (Assistants, Global Skills, or Applications). This guide covers standalone function deployment using Forra CLI.

Automatic Deployment with Containers

Functions are automatically deployed when you deploy their container:

See the respective guides for complete workflows including function packaging and deployment.

Standalone Function Deployment

Commands

Initialize Project

forracli functions init -d my_project

Creates project structure with function templates, requirements.txt, and local development setup.

Package Project

forracli functions package my_project

Generates a .zip file ready for deployment to assistant skills.

Deploy Directly

forracli functions deploy -a {assistant_id} my_project

Automatically packages and deploys to the specified assistant. Or deploy a single file:

forracli functions deploy -a {assistant_id} ./my_function.py

Usage

  • Manual: Package your project and upload the .zip to assistant skills via web UI
  • Automated: Use deploy command with assistant ID for direct deployment

All functions with Forra decorators become available to the assistant automatically.

Next Steps