Documentation Index
Fetch the complete documentation index at: https://porter-mintlify-porter-builds-cli-1778762963.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
porter builds contains commands for managing build templates and the build runs that produce container images for your applications. Use these commands to list templates, trigger and inspect builds, update build configuration, and tune the Narvi remote builder.
Prerequisites
- You’ve logged in to the Porter CLI after running porter auth login
- You’re connected to the correct project by running porter config set-project
porter builds list
Lists all build templates for the current project. Each template represents a repository and branch that Porter can build container images from.
Usage:
porter builds runs
Lists the build runs for a specific build template, most recent first.
Usage:
| Flag | Description |
|---|---|
--page | Page number (1-based) for paginating through results |
porter builds list. Each row shows the build ID, status, commit SHA, and timestamps. Use the build ID with porter builds logs to inspect a specific run.
porter builds logs
Streams the logs for a specific build run.
Usage:
porter builds trigger
Triggers a new build run for a build template. By default, the build uses the template’s configured branch tip; pass --commit-sha to build a specific commit.
Usage:
| Flag | Description |
|---|---|
--commit-sha | Git commit SHA to build |
--commit-message | Git commit message to associate with the build |
porter builds runs and porter builds logs.
porter builds update
Updates a build template’s configuration. Only the flags you provide are changed; everything else is preserved.
Usage:
| Flag | Description |
|---|---|
--repo | Repository in org/repo format |
--branch | Git branch to build from |
--build-method | Build method: dockerfile or buildpack |
--build-path | Build context path within the repository |
--dockerfile | Path to the Dockerfile (for dockerfile builds) |
--narvi-enabled | Enable Narvi builds for this template |
--narvi-disabled | Disable Narvi builds for this template |
When you enable Narvi on a template that has never used it before, Porter automatically provisions a Narvi builder for your project with sensible defaults. You can resize that builder later with
porter builds config set.porter builds metrics
Shows builder resource metrics (CPU, memory, cache usage) for a build template. Useful for deciding whether to resize the Narvi builder backing the template.
Usage:
porter builds config
Manages the project-wide Narvi builder configuration. Narvi is Porter’s remote builder; a single Narvi builder config per project backs all templates that have Narvi enabled.
porter builds config get
Prints the current Narvi builder configuration, including CPU cores, memory, and cache size.
Usage:
porter builds config set
Updates the Narvi builder configuration. At least one of --cpu, --memory, or --cache is required.
Usage:
| Flag | Description |
|---|---|
--cpu | CPU cores allocated to the builder |
--memory | Memory in GiB allocated to the builder |
--cache | Cache size in GiB allocated to the builder |
When a build template first enables Narvi, Porter provisions a builder with default resources (4 CPU cores, 16 GiB memory, 64 GiB cache). Use
porter builds config set if your builds need more headroom.Common Workflows
Trigger a build and follow its logs
Move a template to the Narvi remote builder
Related Commands
- porter apply - Deploy an application using
porter.yaml - porter app - Manage Porter applications

