{
  "version": "0.13.0",
  "generated_at": "2026-11-04T10:44:16.345971+00:00",
  "scope": "Client setup commands and supported options",
  "provenance": "Real recorded stdout/PTY from native acceptance plus fresh non-mutating help/version/dry-run/argument checks",
  "new_repository_installations_on_host": false,
  "new_metadata_downloads": false,
  "cards": [
    {
      "id": "version",
      "title": "نمایش نسخه",
      "description": "نسخهٔ اسکریپت را بدون تغییر تنظیمات نمایش می‌دهد",
      "commands": [
        "mirrorstack version",
        "mirrorstack --version",
        "bash setup.sh --version"
      ],
      "executed_command": "bash setup.sh --version",
      "output": "version        0.13.0\n",
      "source": "اجرای تازهٔ فایل ثابت",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "shared",
      "title": "ورودی مشترک و نسخهٔ ثابت",
      "description": "این دو ورودی همان توزیع، نسخه، معماری و هدف را برای انتخاب اسکریپت بررسی می‌کنند",
      "commands": [
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup.sh)",
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/setup.sh)",
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/setup.sh) --dry-run"
      ],
      "executed_command": "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/setup.sh) --dry-run",
      "output": "Mirrorstack 0.13.0 | dry_run\n-----------------------------------------------\n  dry_run        Dry run: ubuntu-24\n  configuration  Configuration: /etc/apt/sources.list.d/mirrorstack-ubuntu-24.sources\n  mirror         Mirror: https://mirror.digitalvps.ir/mirror/ubuntu-24/\n  dry_run        No files changed\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "plan-before",
      "title": "برنامهٔ تغییرات پیش از نصب",
      "description": "فایل‌های قابل تغییر بدون اعمال تنظیمات نمایش داده می‌شوند",
      "commands": [
        "bash setup.sh --plan",
        "mirrorstack plan"
      ],
      "executed_command": "bash setup.sh --plan",
      "output": "Mirrorstack 0.13.0 | plan\n-----------------------------------------------\n  update         /etc/apt/sources.list.d/ubuntu.sources [disable_matching_upstream]\n  create         /etc/apt/sources.list.d/mirrorstack-ubuntu-24.sources [repository_configuration]\n  create         /usr/local/lib/mirrorstack-client/system.sh [local_client]\n  create         /usr/local/bin/mirrorstack [local_launcher]\n  create         /var/lib/mirrorstack-client/state/system [installation_receipt]\n  plan           5 file changes planned; no system files changed\n",
      "source": "خروجی واقعی PTY ثبت‌شده از کانتینر موقت Ubuntu 24.04",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "dry-run",
      "title": "بررسی پیش‌نیازها",
      "description": "dry-run سازگاری و پیش‌نیازها را بررسی می‌کند؛ برنامهٔ دقیق فایل‌ها با plan دیده می‌شود",
      "commands": [
        "mirrorstack --dry-run",
        "bash setup.sh --dry-run",
        "bash setup.sh --dry-run --target system --timeout 600"
      ],
      "executed_command": "bash setup.sh --dry-run --target system --timeout 600",
      "output": "Mirrorstack 0.13.0 | dry_run\n-----------------------------------------------\n  dry_run        Dry run: ubuntu-24\n  configuration  Configuration: /etc/apt/sources.list.d/mirrorstack-ubuntu-24.sources\n  mirror         Mirror: https://mirror.digitalvps.ir/mirror/ubuntu-24/\n  dry_run        No files changed\n",
      "source": "اجرای تازهٔ فقط‌خواندنی در Ubuntu 24.04؛ بدون تغییر مخازن میزبان",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "install",
      "title": "نصب از فایل کامل",
      "description": "تنظیمات مخزن و فرمان محلی آماده می‌شوند؛ بسته‌ای نصب یا ارتقا داده نمی‌شود",
      "commands": [
        "bash setup.sh"
      ],
      "executed_command": "bash setup.sh",
      "output": "Mirrorstack 0.13.0 | install\n-----------------------------------------------\n  started        Checking client identity\n  metadata       Checking the configured mirror with the system package manager\n  local_cli      Available: mirrorstack status | check | plan | diagnose\n  configured     Mirror configured: https://mirror.digitalvps.ir/mirror/ubuntu-24/\n  packages       No packages were installed or upgraded\n  backup         Restore command: bash /var/backups/mirrorstack-client/ubuntu-24-20261104T000923Z-L96iBr/restore.sh\n",
      "source": "خروجی واقعی PTY نصب از آرشیو منتشرشده",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "status",
      "title": "وضعیت محلی",
      "description": "این بررسی به دریافت دوبارهٔ ابزار از سایت نیاز ندارد",
      "commands": [
        "mirrorstack status",
        "mirrorstack --status",
        "mirrorstack status --target system"
      ],
      "executed_command": "mirrorstack status",
      "output": "Mirrorstack 0.13.0 | status\n-----------------------------------------------\n  status         Mirrorstack configuration matches this installer\n",
      "source": "خروجی واقعی PTY ثبت‌شده",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "plan-after",
      "title": "برنامهٔ تغییرات پس از نصب",
      "description": "در اجرای ثبت‌شده، تنظیمات یکسان‌اند و تعداد تغییرات 0 است",
      "commands": [
        "mirrorstack plan",
        "mirrorstack --plan"
      ],
      "executed_command": "mirrorstack plan",
      "output": "Mirrorstack 0.13.0 | plan\n-----------------------------------------------\n  plan           0 file changes planned; no system files changed\n",
      "source": "خروجی واقعی PTY ثبت‌شده",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "rerun",
      "title": "اجرای دوبارهٔ نصب",
      "description": "تنظیمات یکسان باعث ساخت بکاپ تکراری نشده‌اند؛ این خروجی برای فرم معادل نسخهٔ ثابت ثبت شده است",
      "commands": [
        "mirrorstack install",
        "mirrorstack install --timeout 180"
      ],
      "executed_command": "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/setup.sh) --timeout 180",
      "output": "Mirrorstack 0.13.0 | install\n-----------------------------------------------\n  started        Checking client identity\n  metadata       Checking the configured mirror with the system package manager\n  local_cli      Available: mirrorstack status | check | plan | diagnose\n  configured     Mirror configured: https://mirror.digitalvps.ir/mirror/ubuntu-24/\n  packages       No packages were installed or upgraded\n  unchanged      Settings already match; no new backup was required\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "status-json",
      "title": "وضعیت محلی با JSON",
      "description": "نتیجهٔ واقعی status از اجرای موفق native در CI",
      "commands": [
        "mirrorstack status --json"
      ],
      "executed_command": "mirrorstack status --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"status\",\"code\":\"configured\",\"message\":\"Mirrorstack configuration matches this installer\",\"installer_version\":\"0.13.0\",\"installed_version\":\"0.13.0\",\"repository\":\"ubuntu-24\",\"target\":\"system\",\"configured\":true,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "plan-json",
      "title": "برنامهٔ دقیق فایل‌ها با JSON",
      "description": "عملیات، مسیر و دلیل تغییر هر فایل؛ changed همچنان false است",
      "commands": [
        "mirrorstack plan --json",
        "bash setup.sh --plan --json"
      ],
      "executed_command": "bash setup.sh --plan --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"plan\",\"code\":\"plan_ready\",\"message\":\"5 file changes planned; no system files changed\",\"installer_version\":\"0.13.0\",\"installed_version\":\"\",\"repository\":\"ubuntu-24\",\"target\":\"system\",\"configured\":null,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[{\"path\":\"/etc/apt/sources.list.d/ubuntu.sources\",\"operation\":\"update\",\"reason\":\"disable_matching_upstream\"},{\"path\":\"/etc/apt/sources.list.d/mirrorstack-ubuntu-24.sources\",\"operation\":\"create\",\"reason\":\"repository_configuration\"},{\"path\":\"/usr/local/lib/mirrorstack-client/system.sh\",\"operation\":\"create\",\"reason\":\"local_client\"},{\"path\":\"/usr/local/bin/mirrorstack\",\"operation\":\"create\",\"reason\":\"local_launcher\"},{\"path\":\"/var/lib/mirrorstack-client/state/system\",\"operation\":\"create\",\"reason\":\"installation_receipt\"}],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "version-json",
      "title": "نسخه با خروجی JSON",
      "description": "خروجی واقعی JSON برای استفاده در اتوماسیون",
      "commands": [
        "mirrorstack version --json",
        "bash setup.sh --version --json"
      ],
      "executed_command": "bash setup.sh --version --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"version\",\"code\":\"ok\",\"message\":\"\",\"installer_version\":\"0.13.0\",\"installed_version\":\"\",\"repository\":\"ubuntu-24\",\"target\":\"system\",\"configured\":null,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "اجرای تازهٔ فایل ثابت",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "docker",
      "title": "انتخاب Docker Engine",
      "description": "این هدف مخزن Docker Engine را تنظیم می‌کند؛ ایمیج‌های Docker دانلود نمی‌شوند",
      "commands": [
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup.sh) --target docker",
        "mirrorstack install --target docker",
        "mirrorstack status --target docker",
        "mirrorstack plan --target docker"
      ],
      "executed_command": "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/setup.sh) --target docker --timeout 180",
      "output": "Mirrorstack 0.13.0 | install\n-----------------------------------------------\n  started        Checking client identity\n  metadata       Checking the configured mirror with the system package manager\n  local_cli      Available: mirrorstack status | check | plan | diagnose\n  configured     Mirror configured: https://mirror.digitalvps.ir/mirror/docker-engine/\n  packages       No packages were installed or upgraded\n  unchanged      Settings already match; no new backup was required\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "docker-json",
      "title": "وضعیت هدف Docker با JSON",
      "description": "system هدف پیش‌فرض است؛ docker باید پیش‌تر با راه‌انداز مربوط به خودش آماده شده باشد",
      "commands": [
        "mirrorstack status --target docker --json"
      ],
      "executed_command": "mirrorstack status --target docker --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"status\",\"code\":\"configured\",\"message\":\"Mirrorstack configuration matches this installer\",\"installer_version\":\"0.13.0\",\"installed_version\":\"0.13.0\",\"repository\":\"docker-engine\",\"target\":\"docker\",\"configured\":true,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "offline",
      "title": "دریافت و بررسی بستهٔ آفلاین",
      "description": "خود اسکریپت و تنظیمات داخل آرشیو هستند؛ مرحلهٔ اعمال تنظیمات به metadata میرور نیاز دارد",
      "commands": [
        "curl -fSLo mirrorstack-ubuntu.tar.gz https://mirror.digitalvps.ir/setup/releases/0.13.0/ubuntu-24.tar.gz",
        "tar xzf mirrorstack-ubuntu.tar.gz",
        "cd mirrorstack-ubuntu-24-0.13.0",
        "sha256sum -c SHA256SUMS",
        "bash setup.sh --plan",
        "bash setup.sh"
      ],
      "executed_command": "sha256sum -c SHA256SUMS",
      "output": "setup.sh: OK\nREADME.txt: OK\n",
      "source": "بررسی تازهٔ آرشیو واقعی منتشرشده؛ نصب از همین آرشیو در CI تأیید شده است",
      "format": "text",
      "exit_code": 0
    },
    {
      "id": "script-ubuntu-24",
      "title": "اسکریپت Ubuntu 24.04",
      "description": "نسخه از خود فایل منتشرشده خوانده شده است؛ فرمان نصب را روی سیستم سازگار همان مخزن اجرا کنید",
      "commands": [
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/ubuntu-24.sh)",
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/ubuntu-24.sh) --version --json"
      ],
      "executed_command": "bash ubuntu-24.sh --version --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"version\",\"code\":\"ok\",\"message\":\"\",\"installer_version\":\"0.13.0\",\"installed_version\":\"\",\"repository\":\"ubuntu-24\",\"target\":\"system\",\"configured\":null,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "اجرای تازهٔ نسخه‌خوان؛ سازگاری نصب هر سیستم در CI جداگانه بررسی شده است",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "script-debian-12",
      "title": "اسکریپت Debian 12",
      "description": "نسخه از خود فایل منتشرشده خوانده شده است؛ فرمان نصب را روی سیستم سازگار همان مخزن اجرا کنید",
      "commands": [
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/debian-12.sh)",
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/debian-12.sh) --version --json"
      ],
      "executed_command": "bash debian-12.sh --version --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"version\",\"code\":\"ok\",\"message\":\"\",\"installer_version\":\"0.13.0\",\"installed_version\":\"\",\"repository\":\"debian-12\",\"target\":\"system\",\"configured\":null,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "اجرای تازهٔ نسخه‌خوان؛ سازگاری نصب هر سیستم در CI جداگانه بررسی شده است",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "script-alma-8",
      "title": "اسکریپت AlmaLinux 8.10",
      "description": "نسخه از خود فایل منتشرشده خوانده شده است؛ فرمان نصب را روی سیستم سازگار همان مخزن اجرا کنید",
      "commands": [
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/alma-8.sh)",
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/alma-8.sh) --version --json"
      ],
      "executed_command": "bash alma-8.sh --version --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"version\",\"code\":\"ok\",\"message\":\"\",\"installer_version\":\"0.13.0\",\"installed_version\":\"\",\"repository\":\"alma-8\",\"target\":\"system\",\"configured\":null,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "اجرای تازهٔ نسخه‌خوان؛ سازگاری نصب هر سیستم در CI جداگانه بررسی شده است",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "script-docker-engine",
      "title": "اسکریپت Docker Engine روی Ubuntu 24.04",
      "description": "نسخه از خود فایل منتشرشده خوانده شده است؛ فرمان نصب را روی سیستم سازگار همان مخزن اجرا کنید",
      "commands": [
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/docker-engine.sh)",
        "bash <(curl -fsSL https://mirror.digitalvps.ir/setup/releases/0.13.0/docker-engine.sh) --version --json"
      ],
      "executed_command": "bash docker-engine.sh --version --json",
      "output": "{\"schema\":1,\"ok\":true,\"action\":\"version\",\"code\":\"ok\",\"message\":\"\",\"installer_version\":\"0.13.0\",\"installed_version\":\"\",\"repository\":\"docker-engine\",\"target\":\"docker\",\"configured\":null,\"changed\":false,\"backup_path\":\"\",\"log_path\":\"\",\"rollback\":\"not_needed\",\"plan\":[],\"diagnostics\":[],\"report_path\":\"\"}\n",
      "source": "اجرای تازهٔ نسخه‌خوان؛ سازگاری نصب هر سیستم در CI جداگانه بررسی شده است",
      "format": "json",
      "exit_code": 0
    },
    {
      "id": "restore",
      "title": "بازگردانی بکاپ تنظیمات",
      "description": "مسیر زیر مربوط به کانتینر آزمون است؛ در سیستم خودتان فرمان چاپ‌شده در پایان همان نصب را استفاده کنید",
      "commands": [],
      "executed_command": "bash /var/backups/mirrorstack-client/ubuntu-24-20261104T004413Z-ipiHLZ/restore.sh",
      "output": "Previous repository settings restored\n",
      "source": "https://github.com/Digitalvps-Ir/Mirrorstack/actions/runs/41748992454",
      "format": "text",
      "exit_code": 0
    }
  ],
  "options": [
    [
      "--help / -h",
      "راهنمای اسکریپت"
    ],
    [
      "--version",
      "نسخهٔ ابزار"
    ],
    [
      "--dry-run",
      "بررسی سازگاری بدون اعمال تنظیمات"
    ],
    [
      "--status",
      "وضعیت تنظیمات محلی"
    ],
    [
      "--plan",
      "برنامهٔ فایل‌های قابل تغییر"
    ],
    [
      "--json",
      "نتیجهٔ JSON در stdout"
    ],
    [
      "--target system|docker",
      "انتخاب هدف؛ system پیش‌فرض است"
    ],
    [
      "--timeout 10..600",
      "مهلت هر مرحله؛ پیش‌فرض 180 ثانیه"
    ]
  ]
}
