Scaffold a new app with the CLI.
Create App
bash
1infsh app init my-appOr interactive mode:
bash
1infsh app initAnswer the prompts:
| Prompt | Example |
|---|---|
| Name | my-app |
| Description | Processes images |
| Category | image |
| Python version | 3.11 |
| GPU required | yes or no |
What's Created
code
1my-app/2├── inf.yml # Configuration3├── inference.py # Your code4├── requirements.txt # Python dependencies5├── packages.txt # System dependencies (optional)6├── skills/ # AI coding agent guidance7└── README.mdFiles Explained
| File | Purpose |
|---|---|
inf.yml | App settings, resources |
inference.py | Your app logic |
requirements.txt | Python packages (pip) |
packages.txt | System packages (apt) — optional |
skills/ | Guidance for AI coding assistants |
Dependencies
Python Packages (requirements.txt)
code
1torch>=2.02transformers3accelerateSystem Packages (packages.txt)
For system-level dependencies (installed via apt):
code
1ffmpeg2libgl1-mesa-glxBase Images
Apps run in containers with these base images:
| Type | Image | Use Case |
|---|---|---|
| GPU | docker.inference.sh/gpu:latest-cuda | CUDA GPU apps |
| CPU | docker.inference.sh/cpu:latest | CPU-only apps |
Note: Currently only NVIDIA CUDA GPUs are supported for GPU apps.
Next
→ App Code