Added
globalaccess modifier for cross-namespace visibility. A third tier
alongside private (default) andpub,globalemits the Apexglobal
keyword required by managed-package APIs,@RestResourceclasses,
@InvocableMethodmethods used in subscribers, and
Batchable/Schedulable/Queueableclasses exposed cross-namespace.
Applies tofn,type,opaque type, andconstdeclarations. When
any declaration in a module isglobal, the generated outer Apex class
is emitted asglobaltoo. Composes with the sharing annotations:
global with sharing class,global without sharing class, and
global inherited sharing classare all valid. Full reference at
vertex-run.github.io/reference/visibility.- REST resources as a first-class language feature. A
.vtxfile
annotated with@RestResource(urlMapping: "/...")at module level
becomes a Salesforce custom Apex REST endpoint. Handler functions use
@Get,@Post,@Put,@Patch, and@Deletewith an optional path
suffix:@Get("/{accountId}")binds the captured segment to a
same-namedStringparameter on the handler. Handlers have the shape
fn(req: Request, <captures: String>...): Response; return a
Responsevalue built with factory functions like
Response.ok(body: x),Response.text(status: 200, body: "..."),
Response.no_content(). A single module supports multiple handlers
per verb, dispatched at runtime by path-pattern specificity
(literal segments beat captures). Full reference at
vertex-run.github.io/reference/salesforce/rest-resources.
Installation
Download the binary for your platform from the assets below, make it executable, and move it somewhere on your PATH:
macOS (Apple Silicon)
curl -Lo vertex https://github.com/vertex-run/vertex/releases/download/v0.4.0/vertex-macos-arm64
chmod +x vertex && sudo mv vertex /usr/local/bin/macOS (Intel)
curl -Lo vertex https://github.com/vertex-run/vertex/releases/download/v0.4.0/vertex-macos-x86_64
chmod +x vertex && sudo mv vertex /usr/local/bin/Linux (x86_64)
curl -Lo vertex https://github.com/vertex-run/vertex/releases/download/v0.4.0/vertex-linux-x86_64
chmod +x vertex && sudo mv vertex /usr/local/bin/Windows (x86_64)
Download vertex-windows-x86_64.exe, rename it to vertex.exe, and place it in a folder on your PATH.
After installing, verify with vertex --version.
For full documentation visit https://vertex-run.github.io.