Skip to main content
porter app contains commands for managing and interacting with your applications.

Prerequisites


porter app run

Runs a command inside your application’s environment. By default, this spins up an ephemeral copy of your application that is deleted when the command completes. Usage:
Options:
The --cpu and --ram flags aren’t applicable when used with the -e flag as they require spinning up an ephemeral replica of your application.
In these examples, we use bash and python, but those commands need to actually be present within the container to run. With very lightweight containers, you may find that none of these are available. If you run into trouble here, feel free to reach out to the support team.

porter app run cleanup

Delete any lingering ephemeral replicas that were created with porter app run. Usage:

porter app logs

Streams the latest logs for an application. Usage:
Options: Historical Log Options:
By default, the command streams new logs. Setting --since or --from/--to switches to pulling historical logs.

porter app build

Builds a new version of the specified app. Attempts to use any build settings previously configured for the app, which can be overridden with flags. Usage:
Options:

porter app push

Pushes the specified app to your default Porter registry. If no tag is specified, the latest commit SHA from the current branch will be used as the tag. Usage:
Options:

porter app create

Creates and deploys a new app in your project. If no flags are specified, you will be directed to a series of required prompts to configure the app. Usage:
Options:

porter app update

Updates the specified app with the provided configuration. This command differs from porter apply in that it only updates the app, but does not attempt to build a new image. Usage:
Options:
This command differs from porter apply in that it only updates the app configuration without attempting to build a new image.

porter app update-tag

Updates the image tag for an application. This is functionally equivalent to running porter apply or porter app update with the --tag flag. Usage:
Options:

porter app yaml

Export the current Porter YAML configuration for an application. Useful for bootstrapping a porter.yaml file or inspecting the current configuration. Usage:
Options:
Redirect the output to create a porter.yaml file: porter app yaml my-app > porter.yaml

porter app list

Lists all applications in the project. Usage:

porter app manifests

Prints the Kubernetes manifests for an application. Usage:

porter app rollback

Rolls back an application to the last successful revision. Usage: