<< All versions
Skill v1.0.0
currentLLM-judged scan90/100devchiniwala/heyclara/modal-cli
──Details
PublishedOctober 22, 2026 at 02:38 AM
Content Hashsha256:518719ac284d0e54...
Git SHA11f531242b79
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 123 lines · 3.2 KB
version: "1.0.0" name: modal-cli description: > Modal CLI for serverless GPU/cloud compute. Use when user mentions modal, deploying to modal, running GPU workloads, or serverless Python functions. Check which modal first — if missing, offer: pip install modal && modal setup. Covers run/serve/deploy, apps, containers, secrets, volumes, and workspace management.
Prerequisites
Before any modal command, verify the CLI is available:
bash
which modal
If not found, ask the user:
Modal CLI not found. Install it?```bashpip install modal```
After install, run auth setup:
bash
modal setup
This opens a browser for token auth. If modal still isn't on PATH after pip install, use:
bash
python -m modal setup
If found but not authed, check with:
bash
modal token info
If that errors, run modal setup to authenticate.
Core Commands
| Command | Purpose | |
|---|---|---|
modal run <file> | One-off execution of a script/function | |
modal serve <file> | Local dev with hot-reload | |
modal deploy <file> | Production deployment | |
modal app list | List deployed apps | |
modal app logs <name> | Stream logs for a deployed app | |
modal app stop <name> | Stop a running app | |
modal shell | Interactive shell in Modal environment |
Workflows
First-time setup
bash
pip install modalmodal setupmodal run hello.py # validate end-to-end
Develop and deploy
bash
modal run my_app.py # test locallymodal serve my_app.py # hot-reload devmodal deploy my_app.py # ship it
Debug containers
bash
modal container listmodal container logs <id>modal container exec <id> -- bash -lc "nvidia-smi"
Manage resources
bash
modal secret create my-secret KEY=valuemodal volume create my-volmodal environment create devmodal config set-environment dev
Auth & Profiles
modal token info— check current authmodal token new— create token via browsermodal token set— set token credentials directlymodal profile list/activate— switch workspacesmodal config show— print effective config
Environment variables: MODAL_TOKEN_ID, MODAL_TOKEN_SECRET, MODAL_ENVIRONMENT, MODAL_PROFILE
Resource Management
- Secrets:
modal secret list/create/delete(supports.envimport) - Volumes:
modal volume create/list/ls/put/get/rm/delete - Dicts:
modal dict create/list/items/get/clear/delete - Queues:
modal queue create/list/peek/len/clear/delete - NFS:
modal nfs list/create/ls/put/get/rm/delete - Environments:
modal environment list/create/delete/update
Decision Points
- User says "deploy to modal" / "run on GPU" →
modal deployormodal run - User says "check my modal apps" →
modal app list - User says "modal logs" →
modal app logs <name> - User needs interactive debug →
modal shellormodal container exec - modal not installed → offer install, don't silently fail
- modal not authed → run
modal setup
References
- Guide: https://modal.com/docs/guide
- CLI reference: https://modal.com/docs/reference/cli/
- Status: https://status.modal.com