Skip to main content

Dify Cheatsheet

Dify is an open-source LLM application development platform featuring visual workflow orchestration, RAG pipelines, agent building, model management, and monitoring. One-click deployment via Docker Compose with a built-in management UI.

Updated: 2026-07-20·17 commands

Quick Start

``bash # Clone and setup git clone https://github.com/langgenius/dify.git cd dify

# Start services dify setup dify start

# Check status dify status

# View logs dify logs

# Access the UI open http://localhost:80 `

Service Management

dify start / dify stop / dify restart / dify status manage the lifecycle. dify logs shows service logs. The platform runs as multiple Docker containers including API server, worker, frontend, database, and vector store.

Backup & Restore

dify backup creates a full backup. dify restore ./backup.tar.gz restores from backup. Always backup before upgrading.

Production Deployment

dify deploy --env prod handles production configuration. For manual deployment, customize docker-compose.yaml and .env` with your domain, SSL certificates, and external database/vector store connections.

Startup & Modes(8)

CommandLevel
dify --help
Show Dify CLI help
Basic
dify setup
Initialize Dify environment (generate config)
Basic
dify upgrade
Upgrade Dify to latest version
Intermediate
dify migrate
Run database migrations
Intermediate
dify version
Check Dify version
Basic
git clone https://github.com/langgenius/dify
Clone Dify source repository
Basic
dify backup
Backup Dify data
Intermediate
dify restore
Restore Dify data from backup
Expert

ai-server(9)

CommandLevel
dify start
Start Dify services (Docker Compose)
Basic
dify stop
Stop Dify services
Basic
dify restart
Restart Dify services
Basic
dify status
Check Dify service status
Basic
dify logs
View Dify service logs
Basic
dify deploy
Deploy Dify to production
Expert
dify deploy --env
Specify deployment environment
Expert
docker compose -f docker-compose.yaml up -d
Manually start Dify Docker services
Intermediate
docker compose -f docker-compose.yaml down
Stop Dify Docker services
Intermediate

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.