porter app contains commands for managing and interacting with your applications.
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
- You’re connected to the correct cluster by running porter config set-cluster
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:
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:
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:
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:
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:
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:
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:
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:
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:
Related Commands
- porter apply - Deploy an app using configuration-as-code
- porter env - Manage environment variables

