Skip to content
GlxymeshDocs
glxymesh.com
Select theme
Open console
Reading time 2 min

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.

Terminal window
gxmesh push

Run 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:

  1. Checks the project again, and your plan’s limits.
  2. Asks for approval if the push lets a tool reach a host, or use a key, that the live revision doesn’t. See Approvals.
  3. Builds the project’s function tools: resolves packages from the lock file, generates the handler and the input types, and packages the code. A project with only http tools has nothing to build.
  4. Tests every tool with the tests: from its tool.yml, on the new build, before anyone else can call it.
  5. Goes live if every test passes. New calls use the new revision.
✓ Live · acme/helpdesk r4 · 3 tests passed

Each 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.

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.

Terminal window
gxmesh revisions

Lists 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.

Terminal window
gxmesh rollback r7

Rollback 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.

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.

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.