rp flash deploy path/to/project.
Options
What goes into a build
Each build artifact contains:- Your project’s source files, filtered by the ignore rules.
- Your dependencies, collected from the project’s
requirements.txtand every resource’sdependencieslist, and installed for Linux x86_64 workers. - A manifest describing every resource and its configuration.
torch, torchvision, torchaudio, and triton are already installed, so they’re left out of the artifact automatically. If you use a custom image, every dependency is included unless you exclude it.
Size limit
The artifact can be up to 1,500 MB. If it’s larger, the build fails. To shrink it, exclude large packages that your worker image already provides with--exclude, or leave out project files with .runpodignore.
Ignore rules
The SDK uses Git-style ignore patterns to decide which project files go into the artifact. It applies them in this order, with later rules taking precedence:- Default exclusions for virtual environments (
.venv/,venv/,env/), caches (__pycache__/,*.pyc,.pytest_cache/,.mypy_cache/,.ruff_cache/),node_modules/,.DS_Store,*.tar.gzarchives, and tests (tests/,test/,test_*.py,*_test.py). - Your project’s
.gitignorefiles. A.gitignorein a subdirectory overrides its parents for that subtree. Global and parent-directory Git ignores aren’t read. - A
.runpodignorefile at the project root.
!data/sample.csv. If a parent directory is excluded, re-include the directory before its files. Symlinks are never included.
Files that are always excluded
These paths are left out of every artifact, and negation patterns can’t re-include them:.envfiles and variants such as.env.localandprod.env.- Keys and certificates:
*.pem,*.key, and SSH private keys such asid_rsaandid_ed25519. - Credential directories and files:
.ssh,.aws,.azure,.kube,.docker/config.json,.netrc,.npmrc,.pypirc,.git-credentials,.boto, andservice-account*.json. - Internal paths:
.git,.runpod,.flash, and the rootenv/directory.
Call deployed resources
From another codebase, userunpod.Queue and runpod.Api to call resources in a deployed app by name:
default environment unless you pass env=.
You can also call a deployed queue endpoint by ID with the endpoint client, or send HTTP requests to it directly. See Send API requests.
Update and remove a deployment
To deploy new code, runrp flash deploy again with the same environment. To remove an environment’s endpoints, run: