Skip to content

Templates

Terminal window
coderaft init myapp --template python

Includes: Python 3, pip, venv, build tools

Ports: 5000, 8000

Terminal window
coderaft init myapp --template nodejs

Includes: Node.js 22, npm, build tools

Ports: 3000, 8080

Terminal window
coderaft init myapp --template go

Includes: Go 1.24, git, build tools

Ports: 8080

Terminal window
coderaft init myapp --template web

Includes: Python 3 + Node.js 22 + nginx + flask + django + fastapi + TypeScript + Vue CLI + Next.js

Ports: 80, 3000, 5000, 8000

Create custom templates in ~/.coderaft/templates/:

~/.coderaft/templates/rust.json
{
"name": "rust-template",
"description": "Rust development environment",
"config": {
"base_image": "buildpack-deps:bookworm",
"setup_commands": [
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y",
"source $HOME/.cargo/env"
],
"environment": {
"PATH": "/root/.cargo/bin:$PATH"
}
}
}
Terminal window
coderaft templates list # List all templates
coderaft templates show <name> # View template contents
coderaft init myapp -t <name> # Use template