mcloud-organizations

bởi medusajs

Execute mcloud organizations commands to list or get Cloud organizations. Use when discovering organizations, resolving organization IDs by name, or retrieving…

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}'

Thêm skills từ medusajs

mcloud-variables
medusajs
Thực thi các lệnh biến mcloud để liệt kê và lấy các biến môi trường cho một môi trường Cloud. Sử dụng khi kiểm tra, đọc hoặc xuất môi trường…
official
building-storefronts
medusajs
Tích hợp frontend theo SDK cho các storefront Medusa với các mẫu React Query và quy tắc gọi API quan trọng. Luôn sử dụng Medusa JS SDK cho mọi yêu cầu API—không bao giờ dùng fetch() thông thường, vì nó thiếu các header cần thiết (khóa API có thể xuất bản cho các route store, xác thực cho các route admin). Truyền các đối tượng JavaScript thuần cho các phương thức SDK; không bao giờ dùng JSON.stringify() trên các tham số body, vì SDK tự động xử lý tuần tự hóa. Sử dụng useQuery cho các yêu cầu GET và useMutation cho các yêu cầu POST/DELETE,...
official
building-admin-dashboard-customizations
medusajs
Các tiện ích mở rộng giao diện người dùng tùy chỉnh cho bảng điều khiển quản trị Medusa sử dụng Admin SDK và các thành phần giao diện Medusa. Tải kỹ năng này TRƯỚC TIÊN cho bất kỳ công việc giao diện quản trị nào (lập kế hoạch, triển khai, khám phá); máy chủ MCP chỉ cung cấp tham chiếu API, không phải mẫu thiết kế hoặc chiến lược tải dữ liệu. QUAN TRỌNG: Luôn sử dụng Medusa JS SDK cho tất cả các yêu cầu API (không bao giờ dùng fetch thông thường); tách biệt truy vấn hiển thị khỏi truy vấn modal và vô hiệu hóa dữ liệu
official
learning-medusa
medusajs
Khóa học phát triển Medusa tương tác từng bước, nơi bạn xây dựng tính năng thương hiệu trong khi học các mẫu kiến trúc. Ba bài học tiến dần (tổng cộng 2–3 giờ) bao gồm modules, workflows, API routes, module links, workflow hooks và tùy chỉnh giao diện quản trị. Kiểm tra xác nhận sau mỗi thành phần chính để đánh giá hiểu biết khái niệm, chất lượng mã và chức năng trước khi tiếp tục. Coi lỗi là cơ hội giảng dạy; gỡ lỗi cùng nhau với các câu hỏi chẩn đoán và nguyên nhân gốc rễ...
official
db-migrate
medusajs
Thực thi các migration cơ sở dữ liệu Medusa đang chờ và báo cáo kết quả. Chạy npx medusa db:migrate qua Bash để áp dụng tất cả migration đang chờ vào cơ sở dữ liệu Medusa của bạn. Báo cáo kết quả migration bao gồm số lượng migration đã áp dụng, bất kỳ lỗi nào gặp phải và xác nhận thành công. Được thiết kế cho các dự án Medusa với thiết lập npm/npx tiêu chuẩn.
official
mcloud-environments
medusajs
Thực thi các lệnh mcloud environments để liệt kê, lấy, tạo, xóa, triển khai lại hoặc kích hoạt bản dựng cho các môi trường Cloud. Sử dụng khi quản lý vòng đời môi trường,…
official
db-generate
medusajs
Tạo migrations cơ sở dữ liệu cho các module Medusa chỉ với một lệnh duy nhất. Bao bọc lệnh CLI npx medusa db:generate để tạo các tệp migration cho các module Medusa được chỉ định. Chấp nhận tên module làm đối số và báo cáo vị trí tệp migration, lỗi và các bước tiếp theo. Tự động đề xuất chạy npx medusa db:migrate sau khi tạo để áp dụng migrations.
official
mcloud-deployments
medusajs
Thực thi các lệnh mcloud deployments để liệt kê các deployment, truy xuất chi tiết deployment và tải nhật ký build. Sử dụng khi liệt kê deployment, kiểm tra deployment…
official