Skip to main content
Upsun SDK for Go.
This SDK maps the Upsun CLI commands. For more information, read the documentation.

Install

go get upsun-sdk-go

Usage


import "github.com/upsun/upsun-sdk-go";

config := NewUpsunConfig(nil)
upsun := NewUpsunClient(*config)

orgs := upsun.organization.List()
prjs := upsun.project.list("name=MyOrganizationName");
result := upsun.environment.redeploy("MyProjectId", "main");

Devel

Clone repository:
git clone git@github.com:upsun/upsun-sdk-go.git
Install Dep:
go install
Generate API Client (Low-level) base on OpenAPI spec.
./scripts/gen_golang.sh
Build the stack:
go build .
Last modified on May 19, 2026