seyfo
v1.4.0
Published
Cross-platform kurulum kolaylaştırma ve PM2 benzeri process yönetim CLI aracı
Downloads
48
Maintainers
Readme
🗡️ Seyfo
Cross-platform kurulum kolaylaştırma ve process yönetimi CLI aracı.
✨ Özellikler
- 🚀 Yazılım Kurulumu - MongoDB, Docker, Nginx ve daha fazlasını tek komutla kurun (Linux)
- 📦 Process Manager - PM2 benzeri uygulama yönetimi (Tüm platformlar)
- 🖥️ Cross-Platform - Windows, Linux ve macOS desteği
- 🔧 Platform Algılama - Otomatik paket yöneticisi ve sistem algılama
- 📊 Sistem Bilgisi - Hızlı sistem durumu görüntüleme
🖥️ Platform Desteği
| Özellik | Windows | Linux | macOS | |---------|:-------:|:-----:|:-----:| | Process Manager | ✅ | ✅ | ✅ | | Sistem Bilgisi | ✅ | ✅ | ✅ | | Platform Algılama | ✅ | ✅ | ✅ | | Yazılım Kurulumu | ✅ (winget) | ✅ (apt) | ❌ |
📥 Kurulum
npm install -g seyfo🚀 Hızlı Başlangıç
Process Manager (Tüm Platformlar)
# Uygulama başlat
seyfo start app.js --name my-app
# Durumu kontrol et
seyfo ps
# Log'ları izle
seyfo logs my-app -f
# Durdur
seyfo stop my-appSistem ve Platform Bilgisi
# Sistem bilgisi
seyfo system
# Detaylı platform bilgisi
seyfo platformYazılım Kurulumu (Linux & Windows)
# Mevcut yazılımları listele
seyfo list
# Yazılım kur (Linux: apt, Windows: winget)
seyfo install mongodb -y
seyfo install docker -y
seyfo install nginx -y
# İnteraktif kurulum
seyfo setup📦 Desteklenen Yazılımlar
| Yazılım | Windows (winget) | Linux (apt) | |---------|:----------------:|:-----------:| | MongoDB | ✅ MongoDB.Server | ✅ mongodb-org | | Docker | ✅ Docker.DockerDesktop | ✅ docker-ce | | Nginx | ✅ Nginx.Nginx | ✅ nginx | | PostgreSQL | ✅ PostgreSQL.PostgreSQL | ✅ postgresql | | Redis | ✅ Memurai | ✅ redis | | Cloudron | ❌ | ✅ | | Certbot | ❌ | ✅ |
🛠️ Process Manager Komutları
| Komut | Açıklama |
|-------|----------|
| seyfo start <script> | Uygulama başlat |
| seyfo stop <name> | Durdur |
| seyfo restart <name> | Yeniden başlat |
| seyfo ps | Process listesi |
| seyfo logs <name> | Log görüntüle |
| seyfo delete <name> | Kaldır |
| seyfo stop-all | Tüm process'leri durdur |
| seyfo flush | Log'ları temizle |
| seyfo startfile <config> | Ecosystem dosyasından başlat |
🖥️ Platform Komutları
| Komut | Açıklama |
|-------|----------|
| seyfo system | Sistem bilgileri |
| seyfo platform | Detaylı platform bilgisi |
| seyfo pm-info | Process Manager bilgisi |
| seyfo info | Genel seyfo bilgisi |
📚 Dokümantasyon
Detaylı kullanım için docs/ klasörüne bakın:
💻 Modül Olarak Kullanım
const seyfo = require('seyfo');
// Platform bilgisi
const { platform } = seyfo;
const sysInfo = platform.getSystemInfo();
console.log(sysInfo.distro); // 'Windows 11' veya 'Ubuntu 22.04'
// Paket yöneticisi
const pkgMgr = platform.getPackageManager();
console.log(pkgMgr.primary); // 'winget', 'apt', 'brew' vs.
// Process Manager
const { pm } = seyfo;
await pm.start({ script: './app.js', name: 'api' });
await pm.list();
await pm.stop('api');
// Yazılım yüklü mü kontrol
const hasDocker = platform.isInstalled('docker');📋 Gereksinimler
- Node.js 14+
- Windows 10+, Linux veya macOS
- sudo yetkisi (Linux yazılım kurulumları için)
🤝 Katkıda Bulunma
- Fork edin
- Feature branch oluşturun (
git checkout -b feature/yeni-ozellik) - Commit edin (
git commit -am 'Yeni özellik eklendi') - Push edin (
git push origin feature/yeni-ozellik) - Pull Request açın
📄 Lisans
MIT
