RightNow CLI
آخر تحديث
ينفذ الأمر rightnow جانبك من التحسين، على الجهاز الذي يقدم نموذجك. فهو يسحب حزمة، ويفحصها، ويقدمها، ويتحقق منها بجانب المحرك الأصلي، ويتراجع عنها.
التثبيت
على Linux أو macOS، يفحص المثبت الملف التنفيذي الموقع قبل أن يثبت أي شيء:
يضع rightnow في ~/.local/bin ولا يعدل ملف إعدادات الصدفة لديك أبدا. وإذا لم يكن ~/.local/bin ضمن PATH لديك، فإنه يطبع السطر الذي تضيفه.
على Windows، شغل هذا في PowerShell. وهو يفحص التوقيع نفسه قبل أن يثبت أي شيء:
| المنصة | خطوات الحزمة |
|---|---|
linux-x64 | نعم |
linux-arm64 | نعم |
linux-x64-musl | نعم |
linux-arm64-musl | نعم |
darwin-arm64 | لا |
darwin-x64 | لا |
windows-x64 | لا |
تعمل تهيئة الحزمة وتقديمها والتحقق منها والتراجع عنها على Linux فقط. أما بقية الأوامر فتعمل على كل المنصات.
لكل ملف تنفيذي مجموع اختباري في SHA256SUMS، موقع في SHA256SUMS.sig، بجانبه.
تسجيل الدخول
شغل rightnow login على الجهاز. يطبع رمزا يوافق عليه مالك مساحة العمل في وحدة تحكم RightNow. ولا ترسل CLI أي تفاصيل عن جهازك.
يحفظ تسجيل الدخول في سلسلة مفاتيح نظامك. وعلى جهاز لا يملك سلسلة مفاتيح، مثل خادم GPU، يحفظ في ملف لا يقرؤه إلا مستخدمك. ويعرض rightnow whoami مساحة العمل التي سجل الجهاز الدخول إليها.
الأوامر
أوامر الإصدار 2.0.0:
| الأمر | ما يفعله |
|---|---|
rightnow version | Print the CLI's version. |
rightnow doctor | Read this machine: GPU, driver, which GPUs are in use (free_gpus), engine, systemd, disk, user. Sends nothing. |
rightnow trace import <file> --out <out> | Make a trace from your own request log (JSONL or CSV). Prompts in the log are never read further or copied. |
rightnow trace metrics --url <url> --out <out> | Make a trace from the engine's own /metrics page over a window, with no change to serving (vLLM). |
rightnow trace record --upstream <upstream> --out <out> | Record a trace by passing the client's requests through to your engine for a while. Numbers only, never any text. |
rightnow trace check <file> | Check a trace file against the contract (rightnow-trace.v1). |
rightnow trace show <file> | Show everything a trace would send: its fields and its first rows. |
rightnow login | Sign in from this machine with a code the workspace owner approves in the RightNow console. Sends no machine details. Already signed in: says so and starts nothing. |
rightnow logout | Sign out: end this machine's session on the server, then delete the saved sign-in. |
rightnow whoami | The workspace this machine is signed in to. |
rightnow runs | Your optimization runs and whether each kit is ready. |
rightnow run <id> | One run: its order, its state, its result and its kit. |
rightnow trace upload <file> --run <run> | Send a checked trace (numbers only) to a run that has not started. Check it first with trace show. |
rightnow kit pull <id> | Download a paid kit, check its signature and every file, and unpack it into a folder that becomes its kit home. Installs nothing. |
rightnow kit check <dir> | Check a pulled kit folder against its signed list (signature, every file's size and sha256) and whether it fits this machine. Runs nothing. Under --json, made_for and this_machine hold what fit and fits hold. fit and fits go away in 0.2. |
rightnow kit warm <dir> | Run the kit's warm step once before traffic (it fills the GPU driver's cache the kit was measured with). |
rightnow kit serve <dir> | Check the kit folder again, then run the engine with the kit (serve.sh) in the foreground until you stop it (Ctrl-C). Words after -- go to the engine. With --json (and over MCP) nothing runs: the exact line comes back for your own process manager. |
rightnow kit verify <dir> | Run the kit's own verify program (the engine without the kit, then with it, on this machine's GPU), show the numbers, parity first. Use a GPU that is not serving. Sends nothing unless --post. Its work folder, with the engines' caches and the result, is rightnow/verify/<kit id> in your cache folder ($XDG_CACHE_HOME, else ~/.cache) and stays after the run. Set XDG_CACHE_HOME to keep it off a small home disk. |
rightnow kit rollback <dir> | Check the kit folder again, then run the engine as it was before the kit (serve-stock.sh) in the foreground until you stop it (Ctrl-C). Words after -- go to the engine. With --json (and over MCP) nothing runs: the exact line comes back for your own process manager. |
rightnow update <dir> | Take the newest kit of the run you serve: download it beside the kit in use, check it, warm it, verify it on this machine, then switch (the kit before stays for --back). Run it on a GPU that is not serving, or pass --no-verify. --check only says whether there is one. |
rightnow mcp | Serve these commands as tools to a coding agent over MCP (stdio). |
أوامر التتبع موجودة في هذا الإصدار، لكن التشغيل لا يستخدم تتبعا بعد: كل طلب يقاس بالحمل القياسي.
يقبل كل أمر --json: فيطبع مستند JSON واحدا، ويبين رمز الخروج كيف انتهى الأمر.
تشغل هذه الخطوات برامج الحزمة نفسها على جهازك: rightnow kit warm, rightnow kit serve, rightnow kit verify, rightnow kit rollback, rightnow update. اقرأ كل خطوة قبل أن تشغلها.
وكيل البرمجة لديك
يستطيع وكيل البرمجة تنفيذ كل خطوة نيابة عنك. انسخ هذا الموجه إليه، مع معرف التشغيل لديك مكان RUN_ID:
أو أعط الوكيل الأوامر بوصفها أدوات: أضف خادم MCP هذا إلى إعداداته.
تخبر كل أداة مضيف الوكيل هل تقرأ فقط أم تغير جهازك، حتى يتمكن المضيف من سؤالك قبل أي تغيير.
الأجهزة المقيدة أو غير المتصلة
على شبكة مقيدة، اسمح باتصالات HTTPS إلى الخوادم الثلاثة التي تصل إليها CLI ومثبتها:
| الخادم | الاستخدام |
|---|---|
www.rightnowai.co | المثبت وتسجيل الدخول وعمليات التشغيل الخاصة بك. |
releases.rightnowai.co | ملفات CLI ومجاميعها الاختبارية الموقعة. |
storage.googleapis.com | ملفات حزمتك. |
لنقل حزمة إلى جهاز بلا إنترنت:
السحب عبر الإنترنت
على جهاز يصل إلى تلك الخوادم، اسحب الحزمة باستخدام
rightnow kit pull.النسخ
انسخ مجلد الحزمة كاملا والملف التنفيذي
rightnowإلى الجهاز غير المتصل. تقرأ خطوات الحزمة نموذجك من مجلد هناك، لذا انسخ أوزانه أيضا.الفحص دون اتصال
شغل
rightnow kit checkهناك. فهو يقرأ الملفات المحلية فقط: يفحص كل ملف مقابل قائمة الحزمة الموقعة، دون شبكة ودون تسجيل دخول.
لا يرسل rightnow kit verify شيئا ما لم تضف --post، الذي يحتاج إلى الشبكة.
رموز الخروج
| الرمز | المعنى |
|---|---|
0 | نجح الأمر. |
1 | لم ينجح. تذكر الرسالة السبب. |
2 | كان هناك أمر أو خيار أو قيمة غير صحيحة. |
3 | رفضت CLI الخطوة. |
4 | هذا الجهاز لم يسجل الدخول. |
5 | لم يعثر على التشغيل أو الحزمة أو الملف. |
6 | لم تكتمل الدفعة بعد. |
7 | تعذر الوصول إلى RightNow، أو لم تقبل الاستدعاء. ويبين error.code أيهما حدث، وتعني not_open التوقف وإبلاغ المستخدم. |
8 | هذا الجهاز ليس جاهزا للخطوة. |
ذو صلة
للبدء، تحقق من النماذج التي يمكنك تحسينها، ثم افتح تحسين نموذج في وحدة التحكم. وقبل أن تدفع، اقرأ الأسعار وشروط الشراء.