Zinnector® CLI

ทุกคำสั่ง ตรงจาก --help

Zinnector® 0.1.2 สร้างไซต์ WordPress บนเครื่องของคุณเองโดยไม่ต้องติดตั้งอะไรนอกจาก Node ตรวจสอบกับสล็อตโฮสติ้งที่คุณกำลังจะปรับใช้ และพุชโค้ด หน้าตานี้สร้างขึ้นจากคำนิยามคำสั่งของ CLI เอง ซึ่งเป็นออบเจ็กต์เดียวกันกับที่ zinnector --help แสดงผล จึงไม่ขัดแย้งกับเครื่องมือที่คุณติดตั้งไว้

36 คำสั่งใน Zinnector® 0.1.2

ติดตั้งใช้งาน

คำสั่งเดียว บน Node 24 หรือใหม่กว่า ฟรีและใช้งานภายใต้สัญญาอนุญาตแบบ MIT การสร้างโครงร่างและการรันเว็บไซต์ในเครื่องไม่จำเป็นต้องมีบัญชีใดๆ ทั้งสิ้น

npm install -g zinnector

โหนด {node} หรือใหม่กว่า

รันคำสั่ง node --version โดยจะต้องแสดงผลลัพธ์เป็น v24 หรือสูงกว่า ติดตั้งเวอร์ชัน LTS ปัจจุบันจาก nodejs.org — บน Windows ใช้คำสั่ง winget install OpenJS.NodeJS.LTS และบน macOS ใช้คำสั่ง brew install node@24

พบ EBADENGINE หรือไม่?

นั่นคือสิ่งที่ npm กำลังบอกคุณว่า Node ของคุณเก่ากว่า 24 การติดตั้งจะเสร็จสิ้นอยู่ดี แต่ CLI จะปฏิเสธการทำงานและแจ้งเตือนให้อัปเกรด Node แล้วติดตั้งใหม่อีกครั้ง

ใช้ Node 26 หรือใหม่กว่าใช่หรือไม่

CLI ทำงานได้ปกติ รันไทม์ WordPress ที่ดาวน์โหลดมามีเนทีฟโมดูลที่มีไบนารีที่คอมไพิลไว้ล่วงหน้าสำหรับ Node 24 และ 25 เท่านั้น ดังนั้น ในการใช้งานครั้งแรก Zinnector® จึงดึง Node 24 มาสำหรับรันไทม์โดยเฉพาะด้วย ซึ่งมีขนาดประมาณ 30 MB และได้รับการตรวจสอบกับค่าเช็คซัมของ nodejs.org แล้ว ไม่มีคอมไพเลอร์ ไม่มี Visual Studio และไม่ต้องทำอะไรด้วยตนเอง

ทดสอบการทำงาน — สองนาที ไม่ต้องมีบัญชี

รันคำสั่งเหล่านี้ตามลำดับ ภายใต้แต่ละรายการคือลักษณะของความสำเร็จ คุณจึงรู้ได้ทันทีเมื่อมีสิ่งผิดปกติเกิดขึ้น

  1. ติดตั้งใช้งาน

    npm install -g zinnector

    สำเร็จ: npm ทำงานเสร็จสิ้นโดยไม่มีคำเตือน EBADENGINE

  2. ตรวจสอบเวอร์ชัน

    zinnector --version

    สำเร็จ: หมายเลขเวอร์ชัน บน Node ที่เก่ากว่า 24 จะพิมพ์ข้อความว่าจำเป็นต้องใช้ Node 24 หรือใหม่กว่า และจะออกจากโปรแกรมแทน

    0.1.2
  3. อ่านวิธีใช้

    zinnector --help

    สำเร็จ: แบนเนอร์ที่ระบุคำสั่งทั้งห้าของโฟลว์ ตามด้วยแต่ละคำสั่งพร้อมจุดประสงค์บรรทัดเดียว ซึ่งก็คือรายการในหน้านี้

      new       scaffold a WordPress project you can run immediately
      dev       run this project locally — no Docker required
      login     sign in — with your own account in the browser, or with an API key
      logout    forget a stored sign-in
      whoami    show who this CLI is signed in as, and what it can reach
      …
  4. สร้างโครงร่างเว็บไซต์

    zinnector new my-site

    ความสำเร็จ: หัวข้อ "Created my-site" ไฟล์ที่เขียน และคำสั่งถัดไปที่ต้องรัน

    Created my-site  ·  site
      + zinnector.json
      + wp-content/…
    → run it:
        cd my-site
        zinnector dev
  5. เรียกใช้

    cd my-site
    zinnector dev

    การเรียกใช้ครั้งแรกจะถามเพียงครั้งเดียวเพื่อดาวน์โหลดรันไทม์ WordPress (ประมาณ 570 MB ซึ่งเก็บบำรุงรักษาไว้ในแคชของ Zinnector® เอง) สำเร็จ: บรรทัด “running at” พร้อมด้วยที่อยู่ภายในเครื่อง

    ✔ running at http://127.0.0.1:9400
      admin: http://127.0.0.1:9400/wp-admin  (already signed in)
  6. เปิดในเบราว์เซอร์

    open http://127.0.0.1:9400

    สำเร็จ: เว็บไซต์ WordPress ใหม่เอี่ยมในชื่อ “My WordPress Website” และ /wp-admin จะเปิดแดชบอร์ดโดยที่เข้าสู่ระบบไว้แล้ว วางปลั๊กอินลงใน wp-content/plugins แล้วปลั๊กอินจะปรากฏขึ้นในการโหลดหน้าเว็บครั้งถัดไป

    ทุกอย่างข้างต้นทำงานได้โดยไม่ต้องมีบัญชี การลิงก์ การตรวจสอบความพร้อม และการพุช จำเป็นต้องใช้ API key จากแดชบอร์ดของคุณและเว็บไซต์บนโฮสติ้งของ Zinn Digital®

ขั้นตอน: สร้าง, พัฒนา, เชื่อมโยง, ตรวจสอบ, พุช

หกคำสั่งจากศูนย์สู่เว็บไซต์ที่ใช้งานจริง zinnector new จะแสดงรายการนี้เมื่อการทำงานเสร็จสิ้น คุณจึงไม่ต้องคอยจำมันอีกต่อไป

zinnector new my-site      # scaffold a project that boots immediately
cd my-site
zinnector dev              # a real WordPress, locally, with no Docker

zinnector login            # once, when you have hosting
zinnector link             # point the project at a slot
zinnector check            # pre-flight: what will NOT match on the slot?
zinnector push             # push your commits, deploy, watch it finish

จุดสำคัญอยู่ตรงนี้ การตรวจสอบด้วย zinnector check จะเปรียบเทียบสิ่งที่คุณสร้างขึ้น—ไม่ว่าจะเป็นเวอร์ชัน PHP, ดิสก์, จำนวนไฟล์, เวอร์ชัน WordPress—กับสล็อตที่คุณกำลังจะนำไปใช้งาน โดยจะระบุทุกจุดที่ไม่ตรงกันและทุกรายการที่ไม่สามารถเปรียบเทียบได้ จากนั้นจะช่วยให้คุณสามารถดำเนินการนำไปใช้งานต่อได้ทันที เนื่องจากคุณย่อมรู้รายละเอียดเกี่ยวกับเว็บไซต์ของคุณเองในแบบที่เครื่องมือตรวจสอบไม่สามารถรู้ได้

คู่มือคำสั่ง

คำสั่งทั้งหมด 36 รายการ ตามลำดับที่ zinnector --help แสดงไว้ ผลลัพธ์ที่ทำเครื่องหมายว่า "บันทึกไว้แล้ว" นำมาจากตัวอย่างการรันจริงของเวอร์ชันนี้ ส่วนที่เหลือแสดงรูปแบบที่แน่นอนซึ่งคำสั่งพิมพ์ออกมา พร้อมค่าตัวอย่าง โดยโดเมน รหัส และตัวเลขของคุณจะแตกต่างออกไป

ตัวเลือกส่วนกลาง ใช้ได้ก่อนคำสั่งใดๆ:

ตัวเลือกการทำงานของฟีเจอร์นี้
-V, --versionprint the version
--profile <name>use a named credential profile
-h, --helpแสดงวิธีใช้สำหรับคำสั่งใดๆ

zinnector new

scaffold a WordPress project you can run immediately

zinnector new [options] [name]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
nameไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
-t, --template <kind>one of: site, plugin, theme"site"
--php <version>PHP version to develop against"8.3"
--wp <version>WordPress version for the local runtime"latest"
--runtime <name>playground or docker"playground"
--herescaffold into the current directory instead of a new one

ตัวอย่าง

zinnector new my-site

สิ่งที่คุณเห็นcaptured — 0.1.2 on Linux

Created my-site  ·  site
──────────────────────────

  + .gitignore
  + README.md
  + wp-content/mu-plugins/000-zinnector-dev.php
  + wp-content/plugins/.gitkeep
  + wp-content/themes/.gitkeep
  + zinnector.json

  php        8.3
  wordpress  latest
  runtime    playground

→ run it:
    cd my-site
    zinnector dev

→ then, when you have a hosting slot:
    zinnector link     # point it at a site
    zinnector check    # pre-flight before you push
    zinnector push

zinnector dev

run this project locally — no Docker required

zinnector dev [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--php <version>PHP version to run (5.2–8.5 on playground, 7.4–8.5 on docker)
--wp <version>WordPress version
-p, --port <port>port to serve on
--runtime <name>playground (default) or docker
--loginlog in as admin automaticallytrue
--no-logindo not log in automatically
--onceboot, report what is running, then stop
--yesinstall the local runtime without asking
--reset-runtimedelete the installed runtime and install it again
-v, --verboseshow the runtime's own output

ตัวอย่าง

cd my-site
zinnector dev

สิ่งที่คุณเห็นcaptured — 0.1.2. The first run asks once to download the WordPress runtime (~570 MB); pass --yes to skip the question

my-site  ·  WordPress Playground (WASM, no Docker)
───────────────────────────────────────────────────

  serving    a WordPress project
  from       /home/you/my-site
  php        8.3
  wordpress  latest

✔ running at http://127.0.0.1:9400
  admin: http://127.0.0.1:9400/wp-admin  (already signed in)

  Ctrl-C to stop

zinnector login

sign in — with your own account in the browser, or with an API key

zinnector login [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--profile <name>store under a named profile"default"
--api <url>API base URL"https://api.zinndigital.com"
--api-keypaste a per-organisation API key instead of signing in as yourself
--issuer <url>the sign-in service"https://auth.zinndigital.com/realms/zinn"
--no-browserprint the sign-in link without trying to open a browser

ตัวอย่าง

zinnector login

สิ่งที่คุณเห็นthe key is typed at the prompt, never on the command line. In CI, pipe it: echo "$ZINN_API_KEY" | zinnector login --profile ci

Sign in to Zinn Digital  ·  https://api.zinndigital.com
────────────────────────────────────────────────────

  API key: ••••••••••••••••••••••••••••

✔ signed in as you@example.com (Acme Ltd) — profile “default”
→ next: zinnector sites

zinnector logout

forget a stored sign-in

zinnector logout [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--profile <name>which profile to forget"default"

ตัวอย่าง

zinnector logout

สิ่งที่คุณเห็น

✔ signed out of profile “default”

zinnector whoami

show who this CLI is signed in as, and what it can reach

zinnector whoami [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--profile <name>use a named profile
--scopeslist the permissions an API key carries
--jsonmachine-readable output

ตัวอย่าง

zinnector whoami --scopes

สิ่งที่คุณเห็น

Signed in  ·  https://api.zinndigital.com
─────────────────────────────────────────

  key           zdk_live_…3f9a
  organisation  Acme Ltd
  profile       default

  · sites.read
  · sites.deploy
  · dns.manage

zinnector sites

list the sites this key can see

zinnector sites [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output
--status <status>only sites in this status

ตัวอย่าง

zinnector sites

สิ่งที่คุณเห็น

Sites  ·  2
───────────

  domain        status   php      target  id
  example.com   active   php 8.3  fleet   01a03f39-730a-7dc4-84b0-5d4f7582dd04
  shop.test     active   php 8.2  fleet   01a03f39-9c11-7b02-a7e0-2e4d0c5f1b77

zinnector status

everything the platform knows about one site

zinnector status [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector status example.com

สิ่งที่คุณเห็น

example.com  ·  01a03f39-730a-7dc4-84b0-5d4f7582dd04
────────────────────────────────────────────────────

  status        active
  product line  mainstream
  stack         wordpress

● PHP
  version   8.3
  applied   yes

● Quota
  disk      412 MB of 10 GB
  files     18,204 of 250,000

● Deploy
  repository  acme/example-site (main)
  last        2 hours ago — success

zinnector share

give one person access to ONE site — a developer, a designer, a client

zinnector share [options] <site> <email>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteใช่
emailใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--role <role>what they may do: viewer, editor, manager
--reason <text>why they need it — kept with the grant for the audit trail
--until <date>when access ends on its own (YYYY-MM-DD); omit for until-revoked
--jsonmachine-readable output

ตัวอย่าง

zinnector share example.com dev@agency.test --role editor --reason "rebuild the checkout"

สิ่งที่คุณเห็นthe exact shape the command prints, from the source (W40-DEVTOOL added these after this file was last captured); your domains, ids and dates will differ

Shared example.com  ·  01a03f39-730a-7dc4-84b0-5d4f7582dd04
────────────────────────────────────────────────────────────

✔ invited dev@agency.test as editor
  They have no account yet, so an invitation has been emailed. Until they
  sign in and accept it they can see nothing; the moment they do, the site is theirs.

→ what they do next, on their own machine:
    npm i -g zinnector && zinnector login   # sign in as themselves
    zinnector clone example.com   # pull the files down

zinnector collaborators

who has been given access to a site, and whether they have accepted

zinnector collaborators [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector collaborators example.com

สิ่งที่คุณเห็นthe exact shape the command prints, from the source (W40-DEVTOOL added these after this file was last captured); your domains, ids and dates will differ

Access to example.com  ·  2
────────────────────────────

  who               role    status                      ends              why                   grant
  dev@agency.test   editor  invited — not yet accepted  —                 rebuild the checkout  01a03f39-9c11-7b02-a7e0-2e4d0c5f1b77
  ana@studio.test   viewer  active                      until 2026-12-31  quarterly audit       01a03f39-af52-7e19-93c1-6b0d2a7c4e11

zinnector unshare

take a person's access to a site back — by email or grant id

zinnector unshare [options] <site> <who>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteใช่
whoใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--yesdo not ask

ตัวอย่าง

zinnector unshare example.com dev@agency.test --yes

สิ่งที่คุณเห็นthe exact shape the command prints, from the source (W40-DEVTOOL added these after this file was last captured); your domains, ids and dates will differ

✔ withdrew the invitation to dev@agency.test

zinnector invitations

the invitations waiting for you, and accept one

zinnector invitations [options] [command]

ตัวอย่าง

zinnector invitations

สิ่งที่คุณเห็นthe exact shape the command prints, from the source (W40-DEVTOOL added these after this file was last captured); your domains, ids and dates will differ; with no subcommand it runs `list`

Invitations  ·  1
──────────────────

  Acme Ltd has shared example.com with you as editor  01a03f39-9c11-7b02-a7e0-2e4d0c5f1b77

→ accept one: zinnector invitations accept <id>

zinnector invitations list

invitations addressed to the account you are signed in as

zinnector invitations list [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector invitations list

สิ่งที่คุณเห็นthe exact shape the command prints, from the source (W40-DEVTOOL added these after this file was last captured); your domains, ids and dates will differ

Invitations  ·  1
──────────────────

  Acme Ltd has shared example.com with you as editor  01a03f39-9c11-7b02-a7e0-2e4d0c5f1b77

→ accept one: zinnector invitations accept <id>

zinnector invitations accept

accept an invitation — the site is yours the moment this returns

zinnector invitations accept [options] <id>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
idใช่

ตัวอย่าง

zinnector invitations accept 01a03f39-9c11-7b02-a7e0-2e4d0c5f1b77

สิ่งที่คุณเห็นthe exact shape the command prints, from the source (W40-DEVTOOL added these after this file was last captured); your domains, ids and dates will differ

✔ you now have access to example.com

zinnector pull

pull a hosted site's files into this project for local dev — and re-run to re-sync

zinnector pull [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--via <seam>auto (default), git, or backup"auto"
--freshtake a new backup rather than using the latest one (spends an on-demand slot)
--max-age <hours>accept the latest backup if it is younger than this"24"
--fullthe whole document root, WordPress core included (default: wp-content only)
--no-uploadsleave wp-content/uploads (media) behind
--live-configalso write wp-config.php — it holds the LIVE database credentials
--cleanempty wp-content before extracting, so deletions on the site are mirrored
--dry-runsay what would happen and stop
--yesdo not ask

ตัวอย่าง

zinnector pull

สิ่งที่คุณเห็น

Pull example.com  ·  01a03f39-730a-7dc4-84b0-5d4f7582dd04
─────────────────────────────────────────────────────────────

● via git — the site syncs to its own repository and this is a clone of it
✔ fast-forwarded 3 commits 4f1c2a9b → 9d2e7c14

● not synced, and why
  ✖ database                     the local playground has its own; the site's is not copied
  ✖ offloaded media              objects in storage are not in the site's files
  ✖ anything outside the repository  only wp-content syncs

→ next: zinnector dev

zinnector clone

make a local project from a hosted site: clone its repository or pull its files

zinnector clone [options] <site> [dir]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteใช่
dirไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--via <seam>auto (default), git, or backup"auto"
--freshtake a new backup rather than using the latest one
--fullthe whole document root, WordPress core included
--no-uploadsleave wp-content/uploads (media) behind
--live-configalso write wp-config.php — it holds the LIVE database credentials
--yesdo not ask

ตัวอย่าง

zinnector clone client.example.com

สิ่งที่คุณเห็น

Clone client.example.com  ·  client.example.com
──────────────────────────────────────────────────────

✔ wrote client.example.com/zinnector.json (php 8.3, wordpress 6.7.1)
● via backup — the site does not sync to a repository
✔ downloaded 214 MB and extracted wp-content

● not synced, and why
  ✖ database                     the local playground has its own; the site's is not copied
  ✖ offloaded media              objects in storage are not in the site's files
  ✖ wp-config.php                holds the live database credentials (--live-config to write it)
  ✖ WordPress core               the runtime supplies the version the slot runs (--full to take it)

→ next: zinnector dev

→ run it:
    cd client.example.com
    zinnector dev

zinnector check

compare this project against the slot you are about to deploy to

zinnector check [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--probeboot the local runtime and MEASURE its php, rather than trusting zinnector.json
--allshow passing checks too
--strictalso fail when something could not be checked
--jsonmachine-readable output

ตัวอย่าง

zinnector check

สิ่งที่คุณเห็นcaptured from a real run against a slot on PHP 7.4 — the whole point of the command

Pre-flight — example.com  ·  01a03f39-730a-7dc4-84b0-5d4f7582dd04
──────────────────────────────────────────────────────────────────

  local   php 8.3   1,284 files, 12.4 MB
  slot    php 7.4.33   target fleet
  local php is the version DECLARED in zinnector.json — run with --probe to measure it

  ✖ high      php 8.3 locally, 7.4 on the slot
      You built against PHP 8.3, which is newer than the PHP 7.4 the
      slot runs. Code that uses syntax or functions added after the
      slot's version will fatal at runtime, not at deploy time.
      try zinnector php 8.3

  ⚠ warn      the slot runs php 7.4, which is past end of life
      try zinnector php --list

  ? unknown   local php extensions could not be enumerated
      try zinnector dev --once

  5 passed  ·  3 to look at  ·  2 could not be checked

  none of this blocks a deploy — zinnector push --force proceeds anyway

zinnector push

pre-flight, push your commits, and deploy

zinnector push [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
-f, --forcedeploy even when pre-flight has findings
--skip-checksdo not run pre-flight at all
--probemeasure the local runtime during pre-flight instead of trusting zinnector.json
--no-waittrigger the deploy and exit without watching it
--no-gitdo not run git push; deploy whatever the platform already has
--dry-rundo everything except the deploy

ตัวอย่าง

zinnector push

สิ่งที่คุณเห็น

Deploy to example.com  ·  01a03f39-730a-7dc4-84b0-5d4f7582dd04
───────────────────────────────────────────────────────────────

✔ pre-flight: 8 passed  ·  0 to look at  ·  2 could not be checked
→ pushing main (4f1c2a9b add the contact form)
✔ pushed
● deploy 7c0e… started — watching
✔ deployed 4f1c2a9b in 48s

  status    success
  commit    4f1c2a9b
  url       https://example.com

zinnector deploy

redeploy what the platform already has, without pushing

zinnector deploy [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--no-waittrigger and exit

ตัวอย่าง

zinnector deploy example.com

สิ่งที่คุณเห็น

Redeploy example.com  ·  01a03f39-730a-7dc4-84b0-5d4f7582dd04
───────────────────────────────────────────────────────────────

● deploy 7c0e… started — watching
✔ deployed 4f1c2a9b in 41s

zinnector deploys

a site's deploy history

zinnector deploys [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output
-n, --limit <n>how many to show"10"

ตัวอย่าง

zinnector deploys example.com

สิ่งที่คุณเห็น

Deploys — example.com  ·  3
───────────────────────────

  status   commit    branch  trigger  started        message
  success  4f1c2a9b  main    cli      2 hours ago    add the contact form
  success  b21d70e4  main    push     yesterday      fix footer links
  failed   9e8a0c13  main    push     3 days ago     build: composer install exited 1

zinnector php

show or switch a site's PHP version

zinnector php [options] [version]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
versionไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
-s, --site <site>site id or domain
--listlist the versions the platform offers
--jsonmachine-readable output

ตัวอย่าง

zinnector php 8.3 --site example.com

สิ่งที่คุณเห็นwith no version it shows the current one; --list shows what the platform offers for this site's product line

PHP — example.com
─────────────────

  version   7.4  →  8.3
  applied   the machine will confirm shortly

  switch example.com to php 8.3? [y/N] y
✔ php 8.3 requested
⚠ recorded, but the machine has not confirmed it yet

zinnector quota

disk, files and database usage against what the plan grants

zinnector quota [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector quota example.com

สิ่งที่คุณเห็น

Quota — example.com
───────────────────

  disk      412 MB of 10 GB   (4%)
  files     18,204 of 250,000 (7%)
  database  38 MB of 1 GB     (4%)

zinnector db

database size, and single-use links into phpMyAdmin and the file manager

zinnector db [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector db example.com

สิ่งที่คุณเห็นthe phpMyAdmin and file-manager links are single-use and expire; do not paste them anywhere

Database — example.com
──────────────────────

  engine      mariadb 10.11
  size        38 MB
  phpmyadmin  https://…/pma/sso?token=… (single use)
  files       https://…/files/sso?token=… (single use)

zinnector logs

tail a site's access and error logs

zinnector logs [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--accessonly the access log
--erroronly the error log
--buildthe build log of the most recent deploy instead
--jsonmachine-readable output

ตัวอย่าง

zinnector logs example.com --error

สิ่งที่คุณเห็น--access for the access log, --build for the last deploy's build log; with no flag both site logs are shown

Error log — example.com
───────────────────────
[06-Sep-2026 10:12:44 UTC] PHP Warning:  Undefined variable $x in /wp-content/plugins/my-plugin/my-plugin.php on line 12

zinnector wp

run an allow-listed WP-CLI command on a site

zinnector wp [options] <command...>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
command...ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
-s, --site <site>site id or domain
--commandslist what the platform will run
--jsonmachine-readable output

ตัวอย่าง

zinnector wp plugin list --site example.com

สิ่งที่คุณเห็นthe allow-list is served by the platform — zinnector wp --commands prints it

+-----------------+----------+--------+---------+
| name            | status   | update | version |
+-----------------+----------+--------+---------+
| my-plugin       | active   | none   | 1.0.0   |
| zinn-cache      | active   | none   | 2.4.1   |
+-----------------+----------+--------+---------+

zinnector backup

list and take site backups

zinnector backup [options] [command]

ตัวอย่าง

zinnector backup list example.com

`backup` on its own prints its subcommands; see `backup list` and `backup now` below

zinnector backup list

list a site's backups and what its plan grants

zinnector backup list [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector backup list example.com

สิ่งที่คุณเห็น

Backups — example.com  ·  3
───────────────────────────

  status     taken          size    id
  complete   today 03:00    412 MB  bk_01a0…
  complete   yesterday      410 MB  bk_019f…
  complete   2 days ago     409 MB  bk_019e…

  retention  30 days
  off-site   yes

zinnector backup now

take an on-demand backup

zinnector backup now [options] [site]
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
siteไม่ใช่

ตัวอย่าง

zinnector backup now example.com

สิ่งที่คุณเห็น

✔ backup started — zinnector backup list example.com shows it when it completes

zinnector domains

list the domains this key can see

zinnector domains [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector domains

สิ่งที่คุณเห็น

Domains  ·  2
─────────────

  domain        status   registrar  renewal  expires
  example.com   active   zinn       auto     2027-03-14
  shop.test     active   external   —        —

zinnector dns

read and change DNS records

zinnector dns [options] [command]

ตัวอย่าง

zinnector dns list example.com

`dns` on its own prints its subcommands; see `dns list`, `dns add` and `dns rm` below

zinnector dns list

list a domain's DNS records

zinnector dns list [options] <domain>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
domainใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--type <type>only records of this type
--jsonmachine-readable output

ตัวอย่าง

zinnector dns list example.com

สิ่งที่คุณเห็น

DNS — example.com  ·  4 records
───────────────────────────────

  type  name   value            ttl
  A     @      203.0.113.10     300   rec_7f…
  A     www    203.0.113.10     300   rec_80…
  MX    @      10 mail.example.com  3600  rec_81…
  TXT   @      "v=spf1 -all"    3600  rec_82…

zinnector dns add

create a DNS record

zinnector dns add [options] <domain> <type> <name> <value>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
domainใช่
typeใช่
nameใช่
valueใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--ttl <seconds>time to live"3600"
--priority <n>priority, for MX and SRV
--proxiedroute through the CDN
-y, --yesdo not ask

ตัวอย่าง

zinnector dns add example.com TXT _acme "token" --ttl 300

สิ่งที่คุณเห็นthe record is shown and confirmed before it is written; pass --yes to skip the question

Add a DNS record to example.com
───────────────────────────────

  type   TXT
  name   _acme
  value  "token"
  ttl    300

  create it? [y/N] y
✔ created TXT _acme

zinnector dns rm

delete a DNS record

zinnector dns rm [options] <domain> <recordId>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
domainใช่
recordIdใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
-y, --yesdo not ask

ตัวอย่าง

zinnector dns rm example.com rec_7f3a

สิ่งที่คุณเห็น

⚠ deleting A @ 203.0.113.10 from example.com
  delete it? [y/N] y
✔ deleted

zinnector mail

list mail services

zinnector mail [options]
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--jsonmachine-readable output

ตัวอย่าง

zinnector mail

สิ่งที่คุณเห็น

Mail services  ·  1
───────────────────

  domain        status   provider  mailboxes  dns
  example.com   active   zinn      3          ok

zinnector bulk

run one operation across many sites (cache_purge, malware_scan, sitemap, block_ip)

zinnector bulk [options] <operation>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
operationใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
--allevery site this key can see
--site <site...>specific sites, by id or domain
--status <status>every site in this status
-y, --yesdo not ask
--jsonmachine-readable output

ตัวอย่าง

zinnector bulk cache_purge --all

สิ่งที่คุณเห็นone call to the platform for the whole selection, not one per site; the selection is shown and confirmed first

Bulk cache_purge  ·  2 sites
────────────────────────────
  · example.com
  · shop.test

  run cache_purge on 2 sites? [y/N] y
✔ cache_purge queued for 2 sites

zinnector ai

ask the Zinn Digital assistant, with this project as context

zinnector ai [options] <question...>
อาร์กิวเมนต์จำเป็นต้องระบุการทำงานของฟีเจอร์นี้
question...ใช่
ตัวเลือกการทำงานของฟีเจอร์นี้ค่าเริ่มต้น
-s, --site <site>ask about a particular site
--no-contextdo not send anything about the local project
--jsonmachine-readable output

ตัวอย่าง

zinnector ai "why is my deploy failing?"

สิ่งที่คุณเห็นruns on the platform against your own account; from inside a project it sends the project's shape and site id, never file contents

Zinn Digital assistant
──────────────────────

Your last deploy of example.com failed at the build step: `composer install` exited 1 because
`vendor/` is committed alongside a lock file that no longer matches it. Remove `vendor/` from
the repository or run `composer update` and commit the new lock file, then `zinnector push`.

ติดตั้งใช้งานและเริ่มเว็บไซต์ได้ภายในหนึ่งนาทีถัดไป

ฟรี ได้รับอนุญาตภายใต้สัญญาอนุญาต MIT และทุกคำสั่งคือการดำเนินการที่มีเอกสารประกอบใน Public API ซึ่งไม่มีสิ่งใดที่นี่ที่ API ไม่สามารถทำได้

npm install -g zinnector