Overview
MeshAgent exposes image workflows throughmeshagent build and
meshagent deploy.
Use these commands when you want to:
- build and publish an image from a local directory inside a room
- deploy an image directly as a room service
How image commands fit into MeshAgent
These commands sit between source files and a deployable MeshAgent service:meshagent buildbuilds an image inside a room using a localPATH.meshagent deploycreates or updates a room service from that image.
- prepare files in the room
- build an image from those files inside the room
- deploy a service that uses that image
Commands
meshagent build
Use build when you want MeshAgent to build an image inside a room.
The build context can come from:
- room storage mounts
- project storage mounts
- mounted images
- a packed local directory passed as the positional
PATH
Dockerfile, MeshAgent can use that Dockerfile during the room-side build. This means the build runs in MeshAgent rather than requiring a local Docker daemon on the machine that started the command.
Example using a packed local directory:
--tagis required--roomis required unlessMESHAGENT_ROOMis already setPATHuploads a local directory to room storage and mounts it for the build- local
PATHbuilds accept shorthand registry tags like<repository>:<tag> - build logs stream back through the CLI while the build runs
- this is a good fit for agent-driven build workflows inside a room because the build happens in MeshAgent, not on the local machine
meshagent deploy
Use deploy when you already have an image and want to create or update a room service from it.
Example:
- mount room storage with
--room-mount - mount project storage with
--project-mount - mount another image with
--image-mount - inject a
MESHAGENT_TOKENwith--meshagent-token - override the deploy identity for
--meshagent-tokenand--env-secretwith--identity - inject a secret-backed environment variable with
--env-secret NAME=SECRET_ID - publish a route with
--domainwhen the service exposes exactly one published port
How image builds and deploys work with service packaging
The image commands and service packaging are complementary. Use these image commands when:- your workflow is image-first
- you want to build inside a room
- you want to build from a local directory inside a room
- you want a fast path from image tag to room service
- you want an agent in the room to participate in building and shipping the service
- you are writing or reviewing a
meshagent.yaml - you need a fuller service spec with more explicit deployment structure
- you are working with ServiceTemplates or broader service configuration