memberstack-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Memberstack CLI Skill

Memberstack CLI 技能

Manage your Memberstack account from the terminal using
memberstack-cli
.
使用
memberstack-cli
从终端管理你的Memberstack账户。

Prerequisites

前提条件

Install globally and authenticate before running any commands:
bash
npm install -g memberstack-cli
memberstack auth login
Authentication opens a browser for OAuth and stores tokens at
~/.memberstack/auth.json
with restricted file permissions. Use
memberstack auth logout
to clear credentials.
在运行任何命令之前,先全局安装并进行身份验证:
bash
npm install -g memberstack-cli
memberstack auth login
身份验证会打开浏览器进行OAuth,并将令牌存储在
~/.memberstack/auth.json
中,文件权限受限。使用
memberstack auth logout
清除凭据。

Global Flags

全局标志

All commands support these flags:
  • --json
    /
    -j
    — Output raw JSON instead of formatted tables
  • --live
    — Use live environment instead of sandbox (defaults to sandbox)
所有命令都支持以下标志:
  • --json
    /
    -j
    — 输出原始JSON而非格式化表格
  • --live
    — 使用生产环境而非沙箱环境(默认是沙箱环境)

Command Reference

命令参考

The CLI has the following top-level commands. Read the corresponding reference file for full usage, options, and examples:
CommandPurposeReference
auth
Login, logout, check status
references/auth.md
whoami
Show current identity
references/whoami.md
apps
Create, update, delete, restore apps
references/apps.md
members
List, create, update, delete, import/export, bulk ops
references/members.md
plans
List, create, update, delete, reorder plans
references/plans.md
custom-fields
List, create, update, delete custom fields
references/custom-fields.md
tables
List, create, update, delete data tables
references/tables.md
records
CRUD, query, import/export, bulk ops on table records
references/records.md
Read
references/getting-started.md
for an overview of installation, authentication, and environment switching.
该CLI包含以下顶级命令。阅读对应的参考文件获取完整用法、选项和示例:
命令用途参考
auth
登录、登出、检查状态
references/auth.md
whoami
显示当前身份
references/whoami.md
apps
创建、更新、删除、恢复应用
references/apps.md
members
列出、创建、更新、删除、导入/导出、批量操作
references/members.md
plans
列出、创建、更新、删除、重新排序方案
references/plans.md
custom-fields
列出、创建、更新、删除自定义字段
references/custom-fields.md
tables
列出、创建、更新、删除数据表
references/tables.md
records
对表格记录执行CRUD、查询、导入/导出、批量操作
references/records.md
阅读
references/getting-started.md
了解安装、身份验证和环境切换的概述。

Workflow Tips

工作流提示

  • Always authenticate first with
    memberstack auth login
    . Verify with
    memberstack whoami
    .
  • Use
    --json
    when you need to parse output programmatically or pipe to other tools.
  • Default environment is sandbox. Pass
    --live
    for production operations.
  • For bulk member operations, use
    members import
    ,
    members bulk-update
    , or
    members bulk-add-plan
    with CSV/JSON files.
  • For bulk record operations, use
    records import
    ,
    records bulk-update
    , or
    records bulk-delete
    .
  • Use
    members find
    and
    records find
    for friendly filter-based searches.
  • 始终先使用
    memberstack auth login
    进行身份验证。使用
    memberstack whoami
    验证。
  • 当你需要以编程方式解析输出或传递给其他工具时,使用
    --json
  • 默认环境是沙箱。传递
    --live
    参数用于生产环境操作。
  • 对于批量会员操作,使用
    members import
    members bulk-update
    members bulk-add-plan
    配合CSV/JSON文件。
  • 对于批量记录操作,使用
    records import
    records bulk-update
    records bulk-delete
  • 使用
    members find
    records find
    进行基于筛选条件的友好搜索。

Reference Documentation

参考文档

Each reference file includes YAML frontmatter with
name
,
description
, and
tags
for searchability. Use the search script available in
scripts/search_references.py
to quickly find relevant references by tag or keyword.
  • Getting Started: Quick-start guide for installing the Memberstack CLI, authenticating, and running core member, table, and record commands.
  • Authentication Commands: OAuth authentication reference for Memberstack CLI login, logout, and status workflows with local token handling details.
  • Whoami Command: Reference for showing the currently authenticated Memberstack identity and environment context from the CLI.
  • Apps Commands: Command reference for managing Memberstack apps, including create, update, delete, restore, and current app inspection.
  • Members Commands: Comprehensive command reference for Memberstack member management, including CRUD, plans, search, stats, and bulk workflows.
  • Plans Commands: Reference for managing Memberstack plans, including listing, creation, updates, deletion, and plan priority ordering.
  • Custom Fields Commands: Reference for listing, creating, updating, and deleting Memberstack custom fields, including visibility and admin restrictions.
  • Tables Commands: Reference for managing Memberstack data tables, including list, get, describe, create, update, and delete operations.
  • Records Commands: Reference for working with Memberstack table records, including CRUD, query, filtering, count, import/export, and bulk updates.
每个参考文件都包含YAML前置元数据,包括
name
description
tags
,以便于搜索。使用
scripts/search_references.py
中的搜索脚本,可通过标签或关键词快速找到相关参考内容。
  • 快速入门:安装Memberstack CLI、进行身份验证以及运行核心会员、表格和记录命令的快速指南。
  • 身份验证命令:Memberstack CLI登录、登出和状态工作流的OAuth身份验证参考,包含本地令牌处理细节。
  • Whoami命令:从CLI显示当前已验证的Memberstack身份和环境上下文的参考。
  • 应用命令:管理Memberstack应用的命令参考,包括创建、更新、删除、恢复和查看当前应用。
  • 会员命令:Memberstack会员管理的综合命令参考,包括CRUD、方案、搜索、统计和批量工作流。
  • 方案命令:管理Memberstack方案的参考,包括列出、创建、更新、删除和方案优先级排序。
  • 自定义字段命令:列出、创建、更新和删除Memberstack自定义字段的参考,包括可见性和管理员限制。
  • 数据表命令:管理Memberstack数据表的参考,包括列出、获取、描述、创建、更新和删除操作。
  • 记录命令:处理Memberstack表格记录的参考,包括CRUD、查询、筛选、计数、导入/导出和批量更新。

Searching References

搜索参考文档

bash
undefined
bash
undefined

List all references with metadata

列出所有带元数据的参考文档

python scripts/search_references.py --list
python scripts/search_references.py --list

Search by tag (exact match)

按标签搜索(精确匹配)

python scripts/search_references.py --tag <tag>
python scripts/search_references.py --tag <tag>

Search by keyword (across name, description, tags, and content)

按关键词搜索(涵盖名称、描述、标签和内容)

python scripts/search_references.py --search <query>
undefined
python scripts/search_references.py --search <query>
undefined