مرجع CLI
كل أوامر نشر مع شرح وأمثلة. تحكم كامل من التيرمنال.
nashir deploy
ينشر المشروع الحالي على السيرفر المربوط. يبني التطبيق ويرفعه تلقائي.
$ nashir deploy
▸ Building my-app on hetzner-prod-01...
✓ Dependencies installed (1.8s)
✓ Build completed (3.6s)
✓ Health check passed
✓ Deployed in 8.2s
# Deploy a specific branch
$ nashir deploy --branch staging
# Force rebuild without cache
$ nashir deploy --no-cache
nashir link
يربط مجلد المشروع الحالي بريبو Git وسيرفر. نقطة البداية لكل مشروع.
$ nashir link
? Repository: github.com/you/my-app
? Server: hetzner-prod-01
? Domain: my-app.com (optional)
✓ Project linked
✓ Webhook configured
# Link with explicit repo URL
$ nashir link github.com/you/my-app --server hetzner-prod-01
nashir logs
يعرض سجلات البيلد أو التشغيل. تابع لحظة بلحظة مع --follow.
# View latest build logs
$ nashir logs
# Stream logs in real-time
$ nashir logs --follow
# View runtime logs (not build)
$ nashir logs --runtime
# Filter by time
$ nashir logs --since 1h
nashir rollback
يرجّع لنسخة سابقة. يحتفظ بآخر 10 نسخ جاهزة.
# List available versions
$ nashir rollback --list
v12 (current) — 2 hours ago
v11 — 5 hours ago
v10 — 1 day ago
# Rollback to previous version
$ nashir rollback
✓ Rolled back to v11 (1.4s)
# Rollback to specific version
$ nashir rollback v10
nashir env
يدير المتغيرات البيئية المشفرة. أضف، عدّل، أو احذف لكل بيئة.
# Set a variable (production by default)
$ nashir env set DATABASE_URL "postgres://..."
✓ Encrypted and saved
# Set for preview environment
$ nashir env set --preview STRIPE_KEY "sk_test_..."
# List all variables
$ nashir env list
DATABASE_URL **** production
STRIPE_KEY **** preview
# Remove a variable
$ nashir env rm OLD_KEY
nashir status
يعرض حالة المشروع الحالي: آخر نشر، السيرفر، الدومين، والصحة.
$ nashir status
Project: my-app
Server: hetzner-prod-01 (healthy)
Domain: https://my-app.com
SSL: valid (expires in 82 days)
Last deploy: v12 — 2 hours ago (live)
Build time: 8.2s
Uptime: 99.99%