memberstack-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMemberstack CLI Skill
Memberstack CLI 技能
Manage your Memberstack account from the terminal using .
memberstack-cli使用从终端管理你的Memberstack账户。
memberstack-cliPrerequisites
前提条件
Install globally and authenticate before running any commands:
bash
npm install -g memberstack-cli
memberstack auth loginAuthentication opens a browser for OAuth and stores tokens at with restricted file permissions. Use to clear credentials.
~/.memberstack/auth.jsonmemberstack auth logout在运行任何命令之前,先全局安装并进行身份验证:
bash
npm install -g memberstack-cli
memberstack auth login身份验证会打开浏览器进行OAuth,并将令牌存储在中,文件权限受限。使用清除凭据。
~/.memberstack/auth.jsonmemberstack auth logoutGlobal Flags
全局标志
All commands support these flags:
- /
--json— Output raw JSON instead of formatted tables-j - — Use live environment instead of sandbox (defaults to sandbox)
--live
所有命令都支持以下标志:
- /
--json— 输出原始JSON而非格式化表格-j - — 使用生产环境而非沙箱环境(默认是沙箱环境)
--live
Command Reference
命令参考
The CLI has the following top-level commands. Read the corresponding reference file for full usage, options, and examples:
| Command | Purpose | Reference |
|---|---|---|
| Login, logout, check status | |
| Show current identity | |
| Create, update, delete, restore apps | |
| List, create, update, delete, import/export, bulk ops | |
| List, create, update, delete, reorder plans | |
| List, create, update, delete custom fields | |
| List, create, update, delete data tables | |
| CRUD, query, import/export, bulk ops on table records | |
Read for an overview of installation, authentication, and environment switching.
references/getting-started.md该CLI包含以下顶级命令。阅读对应的参考文件获取完整用法、选项和示例:
| 命令 | 用途 | 参考 |
|---|---|---|
| 登录、登出、检查状态 | |
| 显示当前身份 | |
| 创建、更新、删除、恢复应用 | |
| 列出、创建、更新、删除、导入/导出、批量操作 | |
| 列出、创建、更新、删除、重新排序方案 | |
| 列出、创建、更新、删除自定义字段 | |
| 列出、创建、更新、删除数据表 | |
| 对表格记录执行CRUD、查询、导入/导出、批量操作 | |
阅读了解安装、身份验证和环境切换的概述。
references/getting-started.mdWorkflow Tips
工作流提示
- Always authenticate first with . Verify with
memberstack auth login.memberstack whoami - Use when you need to parse output programmatically or pipe to other tools.
--json - Default environment is sandbox. Pass for production operations.
--live - For bulk member operations, use ,
members import, ormembers bulk-updatewith CSV/JSON files.members bulk-add-plan - For bulk record operations, use ,
records import, orrecords bulk-update.records bulk-delete - Use and
members findfor friendly filter-based searches.records find
- 始终先使用进行身份验证。使用
memberstack auth login验证。memberstack whoami - 当你需要以编程方式解析输出或传递给其他工具时,使用。
--json - 默认环境是沙箱。传递参数用于生产环境操作。
--live - 对于批量会员操作,使用、
members import或members bulk-update配合CSV/JSON文件。members bulk-add-plan - 对于批量记录操作,使用、
records import或records bulk-update。records bulk-delete - 使用和
members find进行基于筛选条件的友好搜索。records find
Reference Documentation
参考文档
Each reference file includes YAML frontmatter with , , and for searchability. Use the search script available in to quickly find relevant references by tag or keyword.
namedescriptiontagsscripts/search_references.py- 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前置元数据,包括、和,以便于搜索。使用中的搜索脚本,可通过标签或关键词快速找到相关参考内容。
namedescriptiontagsscripts/search_references.py- 快速入门:安装Memberstack CLI、进行身份验证以及运行核心会员、表格和记录命令的快速指南。
- 身份验证命令:Memberstack CLI登录、登出和状态工作流的OAuth身份验证参考,包含本地令牌处理细节。
- Whoami命令:从CLI显示当前已验证的Memberstack身份和环境上下文的参考。
- 应用命令:管理Memberstack应用的命令参考,包括创建、更新、删除、恢复和查看当前应用。
- 会员命令:Memberstack会员管理的综合命令参考,包括CRUD、方案、搜索、统计和批量工作流。
- 方案命令:管理Memberstack方案的参考,包括列出、创建、更新、删除和方案优先级排序。
- 自定义字段命令:列出、创建、更新和删除Memberstack自定义字段的参考,包括可见性和管理员限制。
- 数据表命令:管理Memberstack数据表的参考,包括列出、获取、描述、创建、更新和删除操作。
- 记录命令:处理Memberstack表格记录的参考,包括CRUD、查询、筛选、计数、导入/导出和批量更新。
Searching References
搜索参考文档
bash
undefinedbash
undefinedList 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>
undefinedpython scripts/search_references.py --search <query>
undefined