⚡ CLI Hızlı Referans
Önek argümanlarıyla birlikte tüm ODAC CLI komutları için özet başvuru rehberi.
Temel Komutlar
odac # Show server status
odac restart # Restart server
odac monit # Monitor applications
odac debug # View live logs
odac help # Show help
Kimlik Doğrulama
odac auth [-k|--key] <key>
Uygulamalar
odac app api [-i|--id] <app> [--allow <actions>|--all|--off] # Grant API access
odac app create [-n|--name] <name> [-u|--url] <gitUrl> # Create app
odac app delete [-i|--id] <app> # Delete app
odac app device add [-a|--app] <app> [-d|--device] <path> # Connect device
odac app device delete [-a|--app] <app> [-d|--device] <path> # Disconnect device
odac app gpu [-i|--id] <app> [--nvidia|--amd|--intel] [--count <n>] [--optional] [--off] # Reserve GPUs
odac app isolate [-i|--id] <app> [--off] # Block outbound access
odac app list # List apps
odac app network [-i|--id] <app> [--host|--bridge] # Set network mode
odac app privileged [-i|--id] <app> [--root|--full|--off] # Grant elevated access
odac app restart [-i|--id] <app> # Restart app
Alan Adları
odac domain add [-d|--domain] <domain> [-a|--app] <appId> # Add domain
odac domain delete [-d|--domain] <domain> # Delete domain
odac domain list [-a|--app] <appId> # List domains
SSL Sertifikaları
odac ssl renew [-d|--domain] <domain> # Renew SSL certificate
E-posta Hesapları
odac mail create [-e|--email] <email> [-p|--password] <password> # Create account
odac mail delete [-e|--email] <email> # Delete account
odac mail list [-d|--domain] <domain> # List accounts
odac mail password [-e|--email] <email> [-p|--password] <password> # Change password
Yaygın Önekler
| Önek | Uzun Biçim | Açıklama |
|---|---|---|
-d |
--domain |
Alan adı |
-e |
--email |
E-posta adresi |
-p |
--password |
Parola |
| -i | --id | Proje ID/adı |
| -k | --key | Kimlik doğrulama anahtarı |
Kullanım Biçimleri
Etkileşimli Mod:
odac app create
# Prompts for app details
Tek Satır Modu:
odac app create -n my-app -u https://github.com/user/repo.git
# No prompts, immediate execution
Karma Mod:
odac app create -n my-app
# Prompts only for URL/repo
Otomasyon Örnekleri
# Batch create email accounts
odac mail create -e admin@example.com -p admin123
odac mail create -e support@example.com -p support456
# Set up multiple subdomains
odac domain add -d blog.example.com -i my-app
odac domain add -d api.example.com -i my-app
odac domain add -d shop.example.com -i my-app
# Renew multiple SSL certificates
odac ssl renew -d example.com
odac ssl renew -d api.example.com
İpuçları
- Betikler ve otomasyon için tek satır modunu kullanın
- Tek seferlik işlemler için etkileşimli modu kullanın
- Gerektiğinde her iki modu bir arada kullanın
- Tüm komutlar ayrıntılı bilgi için
--helpbayrağını destekler