M

Modal CLI

CLI discovered

Details
Command
modal
Docs
https://modal.com/docs/cli/latest/run
Authentication
Modal API token pair (token ID + token secret) compound discovered Get key ↗
$ modal token set

Create credentials either with the CLI or in the dashboard. Easiest paths: run modal token new from an authenticated browser session, or create a service user from the workspace Service Users guide via the service user tokens page. Modal exposes the pair as MODAL_TOKEN_ID and MODAL_TOKEN_SECRET; you can store them with modal token set or export those environment variables directly.