mcloud-organizations

โดย medusajs

ดำเนินการคำสั่ง mcloud organizations เพื่อแสดงรายการหรือดึงข้อมูลองค์กรบน Cloud ใช้เมื่อต้องการค้นหาองค์กร แก้ไขรหัสองค์กรตามชื่อ หรือดึงข้อมูล…

npx skills add https://github.com/medusajs/medusa-agent-skills --skill mcloud-organizations

Cloud CLI: Organizations Commands

Execute mcloud organizations commands to list and retrieve Cloud organizations.

Constraints

  • organizations list requires personal auth (browser login or personal access key). Organization access keys return 401 on this command.
  • When authenticated with MCLOUD_TOKEN using an org access key, use mcloud whoami --json to get the organization ID instead.

Commands

organizations list

List all organizations your account has access to.

mcloud organizations list --json

Options:

  • --json — Output as JSON

organizations get

Retrieve a single organization by ID. Returns metadata, subscription details, and members.

mcloud organizations get <organization-id> --json

Arguments:

  • organization — Organization ID (required)

Options:

  • -o/--organization <id> — Override the organization in active context (must match the argument)
  • --json — Output as JSON

Organization Fields (JSON)

FieldDescription
idOrganization ID
nameOrganization display name
billing_emailBilling contact email
statusactive or otherwise
membersArray of member objects with id, role, user.email
subscriptionCurrent plan, period, and is_active flag
account_holderBilling account holder details

Examples

# List all organizations
mcloud organizations list --json

# Set context to first organization
ORGANIZATION_ID=$(
  mcloud organizations list --json \
    | jq -r '.[0].id'
)
mcloud use --organization "$ORGANIZATION_ID"

# Find organization ID by name
ORGANIZATION_ID=$(
  mcloud organizations list --json \
    | jq -r '.[] | select(.name == "My Organization") | .id'
)

# Get organization details (subscription, members)
mcloud organizations get org_123 --json

# List member emails
mcloud organizations get org_123 --json \
  | jq -r '.members[].user.email'

# Check subscription plan
mcloud organizations get org_123 --json \
  | jq '{plan: .subscription.plan.name, status: .subscription.is_active}'

Skills เพิ่มเติมจาก medusajs

mcloud-variables
medusajs
ดำเนินการคำสั่ง mcloud variables เพื่อแสดงรายการและรับตัวแปรสภาพแวดล้อมสำหรับสภาพแวดล้อมคลาวด์ ใช้เมื่อตรวจสอบ อ่าน หรือส่งออกสภาพแวดล้อม…
official
building-storefronts
medusajs
การผสานรวมฟรอนต์เอนด์แบบ SDK-first สำหรับร้านค้า Medusa ด้วยรูปแบบ React Query และกฎการเรียก API ที่สำคัญ ใช้ Medusa JS SDK สำหรับคำขอ API ทั้งหมดเสมอ—ห้ามใช้ fetch() ปกติเด็ดขาด เนื่องจากขาดส่วนหัวที่จำเป็น (publishable API key สำหรับเส้นทางร้านค้า, auth สำหรับเส้นทางผู้ดูแลระบบ) ส่งออบเจกต์ JavaScript ธรรมดาไปยังเมธอดของ SDK ห้ามใช้ JSON.stringify() กับพารามิเตอร์ body เพราะ SDK จัดการการทำให้เป็นอนุกรมโดยอัตโนมัติ ใช้ useQuery สำหรับคำขอ GET และ useMutation สำหรับคำขอ POST/DELETE,...
official
building-admin-dashboard-customizations
medusajs
ส่วนขยาย UI แบบกำหนดเองสำหรับแดชบอร์ด Medusa Admin โดยใช้ Admin SDK และคอมโพเนนต์ Medusa UI โหลดสกิลนี้ก่อนสำหรับงาน UI ของแอดมิน (การวางแผน การนำไปใช้ การสำรวจ); เซิร์ฟเวอร์ MCP ให้เฉพาะการอ้างอิง API เท่านั้น ไม่ใช่รูปแบบการออกแบบหรือกลยุทธ์การโหลดข้อมูล สำคัญ: ใช้ Medusa JS SDK สำหรับคำขอ API ทั้งหมดเสมอ (ห้ามใช้ fetch ปกติ); แยกคิวรีการแสดงผลออกจากคิวรีโมดอล และล้างข้อมูลการแสดงผลหลังจากการกลายพันธุ์ นำวิดเจ็ตไปใช้บนหน้าที่มีอยู่หรือสร้างเส้นทาง UI แบบกำหนดเอง;...
official
learning-medusa
medusajs
ค่ายฝึกพัฒนา Medusa แบบโต้ตอบทีละขั้นตอน ที่คุณจะสร้างฟีเจอร์แบรนด์ไปพร้อมกับเรียนรู้รูปแบบสถาปัตยกรรม ประกอบด้วยสามบทเรียนแบบต่อเนื่อง (รวม 2–3 ชั่วโมง) ครอบคลุมโมดูล เวิร์กโฟลว์ เส้นทาง API การเชื่อมโยงโมดูล ฮุคของเวิร์กโฟลว์ และการปรับแต่ง UI ของแอดมิน มีการตรวจสอบจุดเช็คพอยต์หลังจากแต่ละองค์ประกอบหลัก เพื่อทดสอบความเข้าใจเชิงแนวคิด คุณภาพโค้ด และฟังก์ชันการทำงานก่อนดำเนินการต่อ ปฏิบัติต่อข้อผิดพลาดเป็นโอกาสในการสอน แก้ไขข้อบกพร่องร่วมกันด้วยคำถามวินิจฉัยและการวิเคราะห์สาเหตุที่แท้จริง...
official
db-migrate
medusajs
ดำเนินการย้ายฐานข้อมูล Medusa ที่รออยู่และรายงานผลลัพธ์ รัน npx medusa db:migrate ผ่าน Bash เพื่อใช้การย้ายข้อมูลที่รออยู่ทั้งหมดไปยังฐานข้อมูล Medusa ของคุณ รายงานผลลัพธ์การย้ายข้อมูล รวมถึงจำนวนการย้ายข้อมูลที่ถูกนำไปใช้ ข้อผิดพลาดที่พบ และการยืนยันความสำเร็จ ออกแบบมาสำหรับโปรเจกต์ Medusa ที่มีการตั้งค่า npm/npx มาตรฐาน
official
mcloud-environments
medusajs
ดำเนินการคำสั่ง mcloud environments เพื่อแสดงรายการ รับข้อมูล สร้าง ลบ ปรับใช้ใหม่ หรือเรียกใช้บิลด์สำหรับสภาพแวดล้อม Cloud ใช้เมื่อจัดการวงจรชีวิตของสภาพแวดล้อม...
official
db-generate
medusajs
สร้างการย้ายฐานข้อมูลสำหรับโมดูล Medusa ด้วยคำสั่งเดียว ครอบคลุมคำสั่ง CLI npx medusa db:generate เพื่อสร้างไฟล์การย้ายสำหรับโมดูล Medusa ที่ระบุ รับชื่อโมดูลเป็นอาร์กิวเมนต์และรายงานตำแหน่งไฟล์การย้าย ข้อผิดพลาด และขั้นตอนถัดไป แนะนำให้รัน npx medusa db:migrate หลังจากสร้างเพื่อใช้การย้ายโดยอัตโนมัติ
official
mcloud-deployments
medusajs
Execute คำสั่ง mcloud deployments เพื่อแสดงรายการ deployments ดึงรายละเอียด deployment และดึง build logs ใช้เมื่อต้องการแสดงรายการ deployments ตรวจสอบ deployment…
official