YakCloud CLI
One command, yakcloud, takes you from an empty folder to a production service. Deploy to a local kind cluster on your own machine first, then promote that same image to managed val and prod clusters without rebuilding it.
#overview
What the CLI does
One-line install, self-updating
A single install command is all it takes. yakcloud upgrade updates the CLI, and yakcloud project update updates only the project's engine, CI and skill (your app and manifest stay as they are).
Local dev = the same Kubernetes as prod
project deploy creates a kind cluster on your machine and deploys to it. Services really run locally too, and reach your app through the same <ALIAS>_URL environment variables as in prod. No internet and no cost.
Promote without rebuilding
project promote --to val builds and pushes the image, and --to prod promotes that same image. A version bound for prod gets approval first through project request.
Services by declaration
Declare the services you need in the manifest with source add, and connect them to a workload with bind. Your app connects through injected environment variables instead of hard-coded addresses.
Domains and settings
Check that a name is available with domain check, then attach it with domain. Change replicas, ports, resources and environment variables with scale, set and env.
One account per project
login saves the account in the project folder's .env. Use a different account for each project on the same computer. whoami shows the account for the current folder.
#install
Install
Works in macOS and Linux shells.
Paste the line below into your terminal. The CLI is installed to ~/.local/bin/yakcloud; if that folder isn't on your PATH, the installer adds it to your shell config (~/.zshrc or ~/.bashrc). Open a new terminal and it's ready.
The global /yakcloud slash command and the deploy skill for Claude Code are installed into ~/.claude as well. To skip them, install with curl -fsSL https://get.yakcloud.io | YAKCLOUD_NO_CLAUDE_CMD=1 sh.
Local development (project deploy) needs Docker, kind and kubectl. You don't need them if you only promote to managed clusters.
$ curl -fsSL https://get.yakcloud.io | sh $ yakcloud version $ yakcloud login
#demo
Watch it end to end
Building a message-board app with Claude Code from an empty folder, then carrying it through local dev, val, prod promotion and a custom domain (no sound).
#how
How it works
Initialize
project initin an empty folder. It creates a starter app, CI, the manifest (yakcloud.yaml) and a Claude Code skill, and if you are logged in it creates a Git repository and makes the first push.Local dev deploy
project deploy. Creates a local kind cluster if there isn't one, then deploys. Check the UI, API and WebSockets at a*.localhostaddress.Request prod approval
project request v0.2.0. Records that local verification is done for that version and files an approval request in the console. A person approves it in the console.Promote to prod
project promote --to prod v0.2.0. The prod domains from the manifest are attached, and the app is also served on the prod cluster's default domain.
$ yakcloud project init my-app $ cd my-app && yakcloud project deploy # check it at http://my-app.dev.localhost $ yakcloud project request v0.2.0 # the owner approves in the console $ yakcloud project promote --to prod v0.2.0
#commands
Commands
Run yakcloud help any time for the full list.
Project
project init [name]- Creates a starter app, CI, manifest and skill in an empty folder, plus a Git repository and first push if you are logged in
project deploy [tag]- Dev deploy — to a local kind cluster (created if missing). Offline, free, no CI
project request [vX.Y.Z]- Promotion request — records local verification for that version and files a console approval request. Required before promoting to prod
project promote [vX.Y.Z] --to val|prod- Promote to managed val or prod. Skips the rebuild if the image already exists
project info·project check- Overview of the manifest and live state · show the plan without changing anything (dry-run)
project update- Updates only this project's engine, CI and skill (keeps your app and manifest)
Local dev cluster
dev up [--workers N]- Creates a local kind cluster with ingress (80/443). Default 1 control plane + 2 workers (1–5 workers)
dev deploy·dev status·dev clean- Apply the manifest locally · status · remove this project's resources
dev ls·dev down [--name N]- List local clusters · delete one (check the target in the list first)
Clusters
cluster create <name> [--template S|M] [--nodes N]- Create a managed cluster (waits until it's ready)
cluster ls- List your clusters — name, status, nodes, default domain
Deploy settings
envconf <env> [--cluster C] [--port N] [--workers N] [--domain D]- Per-environment (dev·val·prod) settings — edits only the manifest, leaves running deployments alone
domain check <fqdn>·domain <fqdn> [wl]- Check whether a domain can be used · register a domain and attach it to a workload
scale <wl> <n>- Change the replica count
set <wl> --image/--port/--health/--cpu/--mem/--path/--rewrite- Change workload fields
env <wl> KEY=VAL … [--secret KEY] [--unset KEY]- Set environment variables, secrets, or unset them
Services
source add <name> <type> [plan] [--shared|--persistent]·source rm- Declare or remove a service.
--shared= an isolated database on a shared server.--persistent= a single copy in prod that dev connects to as well (data written in dev stays in prod) bind <wl> <source> <alias>·unbind- Connect to a workload → injects
<ALIAS>_URLand other environment variables service ls·service options <type>- Services in the cluster · the modes available for each type (local·remote·shared)
service backup·rehearse·restore- Back up a local dev service (PostgreSQL), restore it into an isolated database and compare fingerprints, restore (empty targets only by default)
Airflow
airflow ls|dags|runs|trigger|logs|pause|unpause- Airflow inside your cluster, from the shell — relayed by the console, so no password needed.
trigger --waitwaits until the run finishes airflow open·airflow token- Open the web UI straight through your console login · a 1-hour token for calling the REST API directly
Account
login·login --global- Save to the project folder's
.env(default) · a global account for use outside projects (OS keychain) whoami·config·logout- The current folder's account and where its token comes from · saved settings (secrets masked) · delete saved credentials
upgrade- Update the CLI and the
/yakcloudslash command
#kubectl
Look around with kubectl
When you need app logs, pod status or debugging.
Connect to a local dev cluster through the context kind creates (kind-<name>). Check the name with yakcloud dev ls.
For a managed cluster, download the kubeconfig from the cluster screen in the console, or open the web terminal with nothing to install.
$ yakcloud dev ls $ kubectl --context kind-yak-dev get pods -A $ kubectl --context kind-yak-dev logs -n <namespace> deploy/<workload> -f # managed — with the kubeconfig from the console $ kubectl --kubeconfig ./my-cluster.yaml get nodes
#prep
One-time setup for promoting through CI
Not needed if you only develop locally. Set this up once if you want CI to promote on a tag push.
- Deploy token
- Issue a
yakd_…token under Settings → Deploy tokens in the console (it's shown only once). Create the registry token CI uses to push images separately in Gitea under Settings → Applications, with theread:packageandwrite:packagescopes. - Repository
project initcreates the repository and setsorigin. If one already exists, it uses it.- Repository secrets
- Add
YAKCLOUD_URL(https://console.yakcloud.io),YAKCLOUD_TOKEN(deploy token),YAKCLOUD_CLUSTER(target cluster) andREGISTRY_TOKEN(registry token) under the repository's Settings → Actions → Secrets. Then push av*tag and CI deploys. - Manifest
- Set
environments.prod.cluster(andprod.domains) inyakcloud.yaml, plusenvironments.val.clusterif you use val.environments.devdefaults to local kind.
#notes
Good to know
- Promotion to prod works only for versions filed with
project request, after the owner approves them in the console. - The CLI runs in macOS and Linux shells. Local development needs Docker, kind and kubectl.
- Services and environment variables are covered in detail in the services and environment variables guide (PDF).