@uniac/cli
v0.3.38
Published
The Uniac CLI: build and run web apps, websites, agents and databases on Uniac, the cloud platform for AI agents.
Maintainers
Readme
@uniac/cli
Build and run web apps, websites, agents, databases and background workers on Uniac, the cloud platform for AI agents. A coding agent such as Claude Code, Cursor or Codex describes the application and the cloud resources it needs in one file and deploys every service with one command, and the dashboard shows what is running and what it costs. Pricing is usage-based, on a $5 monthly subscription.
uniac is its command-line tool. It reads a uniac.yaml describing the
application's services, builds or pulls their images, pushes them and
deploys every service in one run, then reads the live state back: services,
replicas, endpoints and volumes. A project runs an application's services as
containers on a private network, with public HTTP and TCP endpoints and
persistent volumes.
Documentation is at docs.uniac.ai; a coding agent sets a machine up from uniac.ai/agents.md.
Install
npm i -g @uniac/cliOr run without installing:
npx -y @uniac/cli versionQuickstart
A project is a directory with a uniac.yaml describing its services
and deployments as static resources:
runtime: yaml
resources:
worker:
type: service
image: "mendhak/http-https-echo:31"
env: { GREETING: hello }
workera:
type: deployment
from: worker
public_ports: [{ port: 8080, type: http }]Each deployment instantiates one service named by its resource key (workera),
with optional replicas and public_ports. A workspace can combine
several directories containing uniac.yaml under one project binding:
workspace:
includes: [./api, ./worker]Running a command from an included directory operates on the whole project.
uniac init # scaffold uniac.yaml (also: npm create @uniac@latest)
uniac plan # resolve + preview the deployable (no network)
uniac project create my-app # create the remote project
uniac link my-app # bind this directory to it
uniac deploy # ship itFull manifest reference: Composition in YAML.
How it works
@uniac/cli is a tiny JS shim plus one optionalDependencies entry
per supported platform (@uniac/cli-darwin-arm64, …), each carrying
the prebuilt Go binary. npm installs only the package whose os/cpu
fields match the machine and verifies its registry checksum; the shim
resolves that package's binary and runs it with your argv.
No package in the set has install scripts or fetches anything outside
the npm registry, so installs work in restricted environments — CI,
containers, AI-agent sandboxes — including under --ignore-scripts
and behind proxies or registry mirrors.
Supported platforms: darwin-arm64, darwin-x64, linux-arm64,
linux-x64, win32-arm64, win32-x64 — the authoritative table is
targets.js in this package.
Releasing
.github/workflows/release.yml publishes on v* tags: it runs
scripts/package-platform-npm.js
to stage the platform packages and this meta package (with
exact-version optionalDependencies pins) from GoReleaser's dist/,
then publishes the platform packages and, once npm serves all of them,
the meta package.
This directory is the staging template; the published copies live only
under the gitignored platform-packages/. The repository's root README.md
holds the full release runbook.
To deprecate (or un-deprecate) a published version, dispatch
.github/workflows/npm-deprecate.yml — the npm token lives only in
CI.
License
MIT. See LICENSE.
