modal app
Manage deployed and running Apps.
Usage:
modal app [OPTIONS] COMMAND [ARGS]...Options:
--help: Show this message and exit.
Commands:
dashboard: Open an App's dashboard page in your web browser.history: Show an App's deployment history.info: Show an App's lifecycle, Functions, and Servers.list: List Apps that are running, deployed or recently stopped.logs: Fetch or stream App logs.rollback: Redeploy a previous version of an App.rollover: Redeploy an App to get new containers without code changes.stats: Show aggregate statistics for an App name or ID.stop: Permanently stop an App and terminate its running containers.
modal app dashboard
Open an App's dashboard page in your web browser.
Examples:
Open dashboard for an app by name:
modal app dashboard my-appUse a specified environment:
modal app dashboard my-app --env devUsage:
modal app dashboard [OPTIONS] APP_IDENTIFIEROptions:
-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal app history
Show an App's deployment history.
Examples:
Get the history based on an app ID:
modal app history ap-123456Get the history for an App based on its name:
modal app history my-appUsage:
modal app history [OPTIONS] APP_IDENTIFIEROptions:
-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--json--help: Show this message and exit.
modal app info
Show an App's lifecycle, Functions, and Servers.
Examples:
Get info based on an App ID:
modal app info ap-123456Get info for a currently deployed App based on its name:
modal app info my-appUsage:
modal app info [OPTIONS] APP_IDENTIFIEROptions:
-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--json--no-color: Disable colors in the output.--help: Show this message and exit.
modal app list
List Apps that are running, deployed or recently stopped.
Examples:
Limit output to 30 apps:
modal app list --limit 30Display output in JSON:
modal app list --jsonUsage:
modal app list [OPTIONS]Options:
-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--json: Output as JSON.--limit INTEGER: Show at most N results. Use 0 to list every result. Default is 0.--help: Show this message and exit.
modal app logs
Fetch or stream App logs.
By default, this command fetches the last 100 log entries and exits. Use -f to
live-stream logs from a running App instead. Fetch and follow are mutually exclusive.
Examples:
Get recent logs based on an app ID:
modal app logs ap-123456Get recent logs for a currently deployed App based on its name:
modal app logs my-appFollow (stream) logs from a running App:
modal app logs my-app -fFetch the last 1000 entries:
modal app logs my-app --tail 1000Fetch logs from the last 2 hours:
modal app logs my-app --since 2hFetch logs in a specific time range:
modal app logs my-app --since 2026-03-01T05:00:00 --until 2026-03-01T08:00:00Filter the logs by source and function:
modal app logs my-app --source stderr --function fu-abc123Include timestamps along with Function and Container IDs on each line:
modal app logs my-app --timestamps --show-function-id --show-container-idUsage:
modal app logs [OPTIONS] APP_IDENTIFIEROptions:
-f, --follow: Stream log output until App stops--since TEXT: Start of time range. Accepts ISO 8601 datetime or relative time, e.g. '1d' (1 day ago), '2h', '30m', etc.--until TEXT: End of time range; accepts same argument types as --since-n, --tail INTEGER: Show only the last N log entries--search TEXT: Filter by search text--function TEXT: Filter by Function ID (fu-*)--function-call TEXT: Filter by FunctionCall ID (fc-*)--container TEXT: Filter by Container ID (ta-*)-s, --source TEXT: Filter by source: 'stdout', 'stderr', or 'system'--timestamps: Prefix each line with its timestamp--show-function-id: Prefix each line with its Function ID--show-function-call-id: Prefix each line with its FunctionCall ID--show-container-id: Prefix each line with its Container ID-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal app rollback
Redeploy a previous version of an App.
Note that the App must currently be in a "deployed" state. Rollbacks will appear as a new deployment in the App history, although the App state will be reset to the state at the time of the previous deployment.
Examples:
Rollback an App to its previous version:
modal app rollback my-appRollback an App to a specific version:
modal app rollback my-app v3Rollback an App using its App ID instead of its name:
modal app rollback ap-abcdefghABCDEFGH123456Usage:
modal app rollback [OPTIONS] APP_IDENTIFIER [VERSION]Options:
--strategy [rolling|recreate]: Strategy for rollback-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal app rollover
Redeploy an App to get new containers without code changes.
A rollover replaces existing containers with fresh ones built from the same App version — useful for refreshing containers without changing your code. The rollover appears as a new entry in the App's deployment history.
Examples:
Rollover an App using a rolling deployment. Running containers are now considered outdated and will be gracefully replaced by new ones.
modal app rollover my-appRollover an App by terminating any running containers. Inputs on the queue will start new containers.
modal app rollover my-app --strategy recreateUsage:
modal app rollover [OPTIONS] APP_IDENTIFIEROptions:
--strategy [rolling|recreate]: Strategy for rollover-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal app stats
Show aggregate statistics for an App name or ID.
If --since and --until are omitted, the stats are returned for the last hour. The values of --since and --until can span at most seven days.
App stats show total call counts, request counts, and the count of active and errored containers in the time window. The count of sandboxes that finished in the interval as well as the count that were still running as of the end of the window is also returned.
The available stats and their definitions are subject to change and are provided on a best-effort basis. They may be delayed or incomplete.
Examples:
Calculate App stats for the last four days
modal app stats my-app --since 4dCalculate App stats for a three hour window ending two hours ago in json
modal app stats ap-123 --since 5h --until 2h --jsonUsage:
modal app stats [OPTIONS] APPOptions:
--since TEXT: Inclusive start: an ISO 8601 datetime or relative time such as '2h'. Naive times are local.--until TEXT: Exclusive end: an ISO 8601 datetime or relative time such as '1h'. Defaults to now.--json: Output exact counts and lifecycle metadata as JSON.--no-color: Disable colors in the output.-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal app stop
Permanently stop an App and terminate its running containers.
Usage:
modal app stop [OPTIONS] APP_IDENTIFIEROptions:
-y, --yes: Run without pausing for confirmation.-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.