Skip to content

First Commands

Now that you understand how EMB discovers components, let’s learn the essential commands.

You’ve already seen emb components:

Terminal window
emb components
COMPONENT NAME ID CREATED STATUS
--------------------------------------
api

Resources are things EMB can build. List them with:

Terminal window
emb resources
ID NAME TYPE PUBLISHABLE REFERENCE
---------------------------------------------------------------------
api:image image docker/image hello-world/api:latest

Each resource has:

  • ID: Unique identifier (component:resource)
  • NAME: The resource name within the component
  • TYPE: The resource type (e.g., docker/image)
  • REFERENCE: The full image reference with tag

Build all resources with:

Terminal window
emb resources build

Or build a specific component:

Terminal window
emb resources build api

EMB will:

  1. Check if the image needs rebuilding
  2. Run docker build with the appropriate tags
  3. Cache the result to avoid unnecessary rebuilds

After building, see your images:

Terminal window
emb images

This shows all Docker images managed by EMB for your project.

Every command has built-in help:

Terminal window
emb --help | head -20
A replacement for our Makefile-for-monorepos
VERSION
@enspirit/emb/0.27.0 darwin-x64 node-v22.18.0
USAGE
$ emb [COMMAND]
TOPICS
components List & build components resources
config It's all about config
containers List, delete, prune docker images
images List, delete, prune docker containers
kubernetes Manage project instances on kubernetes
logs Get service logs.
resources List, clean, build resources
secrets List all secret references in the configuration.
tasks List and run tasks
COMMANDS

For help on a specific command:

Terminal window
emb resources --help
emb resources build --help

You’ve learned the basics of EMB:

  • .emb.yml - The project configuration file
  • autodocker plugin - Automatically discovers components
  • emb components - List discovered components
  • emb resources - List buildable resources
  • emb resources build - Build Docker images

Ready to learn more? Continue to Fullstack App to explore:

  • Multiple components
  • Environment variables
  • Tasks
  • Docker Compose integration