Execute a command in your application’s container. By default, this spins up an ephemeral copy of your container that is deleted when the command completes.Usage:
Copy
porter app run [APP_NAME] [flags] -- [COMMAND] [args...]
Options:
Flag
Short
Description
--existing
-e
Connect to an existing running container instead of spinning up a new one
--job
Trigger a manual run of the specified job
--wait
Wait for the job to complete before exiting (used with --job)
--allow-concurrent
Allow concurrent runs for jobs that normally restrict it
--service
Specify which service to connect to
Copy
porter app run my-app -- bash
If bash isn’t available in your container, try sh for a similar interactive experience.
Export the current Porter YAML configuration for an application. Useful for bootstrapping a porter.yaml file or inspecting the current configuration.Usage:
Copy
porter app yaml [APP_NAME]
Copy
porter app yaml my-app
Redirect the output to create a porter.yaml file: porter app yaml my-app > porter.yaml