Apex

HomeDocumentation

Get started with your first Apex deployment.

From setup to production, all the guides, concepts, and references you need to use the platform are in one place.

Quick start

Install the Apex CLI and deploy your first project to edge locations in under two minutes. After setup,apex deploythe command scans your code repository and automatically selects the correct runtime.

StepKomutDescription
1. Setupnpm install -g apex-cliInstalls the CLI globally
2. Loginapex loginAuthenticates in the browser with your account
3. Startapex initCreates an apex.config.json file
4. Deployapex deploy --prodPublishes the project to production edge locations

Core concepts

Apex is built on three core primitives: functions (the code that responds to requests), edge locations (geographic locations where functions run) and environments (separating production, preview, and development). A separate preview environment is automatically created for every branch push.

Functions

Write in TypeScript, JavaScript, or WebAssembly; every request runs at the nearest edge location.

Open guide →

Edge locations

More than 310 locations in 42 countries; capacity scales automatically with traffic, so manual planning is not required.

Open guide →

Environments

Production, preview, and local development run in isolation; certificates and variables are environment-specific.

Open guide →

Deployment flow

When you connect a repository, Apex deploys every push to the main branch to production and other branches to their own preview URLs. Build stepsapex.config.jsonare defined within the project and deployment history can be reviewed from the dashboard.

To roll back a versionapex rollback <deployment-id>command; traffic is routed to the previous version within seconds.

Environment variables

Define secret keys and configuration values from the dashboard orapex env addcommand. Variables can be assigned separately to production, preview, and development environments and read at runtime through theenvnesnesi through okunur.

Field domains and certificates

When you connect a custom domain, an SSL certificate is provided and renewed automatically. After updating the DNS record with your provider, verification usually completes within a few minutes.

Common CLI commands

KomutDescription
apex devLocal development sunucusunu starts
apex logsStreams live function logs
apex domains addConnects a custom domain to the project
apex env pullPulls remote environment variables to local