Deploy and roll back
What gxmesh push does, approving new hosts and keys, the tests that run before a revision goes live, revisions, rollbacks, and watching calls.
gxmesh pushRun it anywhere inside the project. push checks gx.yml and every tool.yml on your machine
first, then sends the project’s source: gx.yml, the package and lock files, tools/, and shared
code in lib/ or internal/. It never sends .env.local or .glxy/. The platform then:
- Checks the project again, and your plan’s limits.
- Asks for approval if the push lets a tool reach a host, or use a key, that the live revision doesn’t. See Approvals.
- Builds the project’s
functiontools: resolves packages from the lock file, generates the handler and the input types, and packages the code. A project with onlyhttptools has nothing to build. - Tests every tool with the
tests:from itstool.yml, on the new build, before anyone else can call it. - Goes live if every test passes. New calls use the new revision.
✓ Live · acme/helpdesk r4 · 3 tests passedEach push is a numbered revision: r1, r2, and so on. If a step fails, the live revision doesn’t
change and push prints why, naming any test that failed. A push that changes nothing says so and
keeps the live revision.
Approvals
Section titled “Approvals”A tool can reach only the hosts it lists, and use only the keys it names. When a push adds either,
push lists them and asks:
This push lets tools reach more than the live version can: host api.github.com key GITHUB_TOKEN
Approve? [y/N]Answer y and the approval is kept with the revision. Pushes that add no new hosts or keys go
straight through. In a script, where nothing can answer the question, gxmesh push --approve agrees
in advance; without it, the push stops and changes nothing.
An agent can propose tools, but a person approves and publishes them. See Build tools with AI.
Revisions
Section titled “Revisions”gxmesh revisionsLists every revision of the project with its state (building, deploying, testing, ready or
failed), when it was pushed, and why it failed if it did. The live one is marked. The console’s
Tools page shows the same, with each revision’s test results.
Roll back
Section titled “Roll back”gxmesh rollback r7Rollback makes an earlier revision live again, as a new revision that copies it. It doesn’t rebuild and needs no approval, because that revision’s hosts and keys were already approved. In the console, open Tools and choose Roll back.
Watch calls
Section titled “Watch calls”The console’s Invocations page lists every call to your project: the tool, the client, how long it took and whether it failed. Open a call to see every request the tool sent outside, with the egress gateway’s decision, the status and the bytes each way.
Sleep and wake
Section titled “Sleep and wake”When nobody calls a project’s function tools for 7 days, the platform puts them to sleep. They stay
listed, and the next call wakes them in a few seconds. On Pro and Business, choose Keep awake on a
tool in the console’s Tools page so it never sleeps. See
Limits for how many tools each plan can keep awake.