Tutorial Objectives
This tutorial covers learning the basic Edge Compute development workflow.Prerequisites
- A Telnyx account with API access - Sign up here if needed.
- Command line familiarity - Requires Terminal (macOS/Linux) or Command Prompt (Windows).
- Time requirement - This guide takes approximately 5 minutes to complete.
Install the CLI
Download Binary
Check out the edge-compute repo and download the latest release from the releases page. Extract the archive and add the binary to your PATH: Example for Linux/macOS:Authenticate
Option 1: OAuth (Recommended)
Authenticate using OAuth with your Telnyx account:Option 2: API Key
Alternatively, authenticate with a Telnyx API key:Verify Authentication
Check your authentication status:Create a Function
Create a simple “Hello World” function. Choose your preferred language:- JavaScript
- Go
- Python
- Java
Function Code
The generatedindex.js contains a basic HTTP handler:Deploy the Function
Navigate to the function directory and deploy:- Validate your function structure.
- Check authentication.
- Package your function files.
- Upload to Telnyx Edge infrastructure.
- Deploy across edge locations.
Test the Function
Your function is now deployed and accessible via HTTP. Functions are accessible at URLs following this pattern:https://{funcName}-{orgId}.telnyxcompute.com
Test your deployed function:
Success! The Function is Live
Your function is now running and ready to handle HTTP requests. Functions automatically scale based on demand.Function Anatomy
Every Telnyx Edge Compute function consists of three essential components:Function Code
The main application code that handles HTTP requests and responses:Runtime Dependencies
Language-specific dependency files that define required packages:Function Configuration
Thefunc.toml file that defines deployment and runtime configuration:
Next Steps
Now that your function is deployed, explore these topics to go deeper:- Runtime APIs - Request/response patterns and the platform interface.
- Execution Model - Function lifecycle, cold starts, and container behavior.
- Configuration - Environment variables, secrets, and bindings.
- Local Development - Build, test, and debug functions locally.
- CLI Reference - All available CLI commands.