Loading...
Loading...
Compare original and translation side by side
membranenpm install -g @membranehq/cli@latestmembranenpm install -g @membranehq/cli@latestmembrane login --tenant --clientName=<agentType>membrane login complete <code>--jsonmembrane login --tenant --clientName=<agentType>membrane login complete <code>--jsonmembrane connection ensuremembrane connection ensure "https://posthog.com/" --jsonstate: "READY"membrane connection ensuremembrane connection ensure "https://posthog.com/" --jsonREADYBUILDINGnpx @membranehq/cli connection get <id> --wait --json--wait--timeoutstateBUILDINGREADYCLIENT_ACTION_REQUIREDclientActionclientAction.type"connect""provide-input"clientAction.descriptionclientAction.uiUrlclientAction.agentInstructionsmembrane connection get <id> --jsonREADYCONFIGURATION_ERRORSETUP_FAILEDerrorBUILDINGnpx @membranehq/cli connection get <id> --wait --json--wait--timeoutBUILDINGREADYCLIENT_ACTION_REQUIREDclientActionclientAction.type"connect""provide-input"clientAction.descriptionclientAction.uiUrlclientAction.agentInstructionsmembrane connection get <id> --jsonREADYCONFIGURATION_ERRORSETUP_FAILEDerrormembrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --jsonidnamedescriptioninputSchemaoutputSchemamembrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --jsonidnamedescriptioninputSchemaoutputSchema| Name | Key | Description |
|---|---|---|
| List Events | list-events | List events in the project. |
| List Actions | list-actions | List all saved actions in the project. |
| List Persons | list-persons | List all persons (users) in the project. |
| List Feature Flags | list-feature-flags | List all feature flags in the project. |
| List Dashboards | list-dashboards | List all dashboards in the project |
| List Cohorts | list-cohorts | List all cohorts in the project |
| List Experiments | list-experiments | List all A/B test experiments in the project |
| List Insights | list-insights | List all insights in the project |
| Get Event | get-event | Retrieve a specific event by ID |
| Get Action | get-action | Retrieve a specific saved action by ID |
| Get Person | get-person | Retrieve a specific person by their ID |
| Get Feature Flag | get-feature-flag | Retrieve a specific feature flag by its ID |
| Get Dashboard | get-dashboard | Retrieve a specific dashboard by ID, including its tiles and insights |
| Get Cohort | get-cohort | Retrieve a specific cohort by ID |
| Get Experiment | get-experiment | Retrieve a specific experiment by ID |
| Create Feature Flag | create-feature-flag | Create a new feature flag in the project |
| Create Dashboard | create-dashboard | Create a new dashboard |
| Create Cohort | create-cohort | Create a new cohort with filters for behavioral, person property, or other criteria |
| Update Dashboard | update-dashboard | Update an existing dashboard |
| Update Cohort | update-cohort | Update an existing cohort |
| 名称 | 键 | 描述 |
|---|---|---|
| 列出事件 | list-events | 列出项目中的事件。 |
| 列出操作 | list-actions | 列出项目中所有已保存的操作。 |
| 列出用户 | list-persons | 列出项目中的所有用户(Persons)。 |
| 列出功能标志 | list-feature-flags | 列出项目中的所有功能标志。 |
| 列出仪表盘 | list-dashboards | 列出项目中的所有仪表盘 |
| 列出用户群组 | list-cohorts | 列出项目中的所有用户群组 |
| 列出实验 | list-experiments | 列出项目中的所有A/B测试实验 |
| 列出洞察 | list-insights | 列出项目中的所有洞察 |
| 获取事件 | get-event | 通过ID检索特定事件 |
| 获取操作 | get-action | 通过ID检索特定已保存操作 |
| 获取用户 | get-person | 通过用户ID检索特定用户 |
| 获取功能标志 | get-feature-flag | 通过ID检索特定功能标志 |
| 获取仪表盘 | get-dashboard | 通过ID检索特定仪表盘,包括其 tiles 和洞察 |
| 获取用户群组 | get-cohort | 通过ID检索特定用户群组 |
| 获取实验 | get-experiment | 通过ID检索特定实验 |
| 创建功能标志 | create-feature-flag | 在项目中创建新的功能标志 |
| 创建仪表盘 | create-dashboard | 创建新的仪表盘 |
| 创建用户群组 | create-cohort | 创建带有行为、用户属性或其他条件筛选器的新用户群组 |
| 更新仪表盘 | update-dashboard | 更新现有仪表盘 |
| 更新用户群组 | update-cohort | 更新现有用户群组 |
membrane action run <actionId> --connectionId=CONNECTION_ID --jsonmembrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --jsonoutputmembrane action run <actionId> --connectionId=CONNECTION_ID --jsonmembrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --jsonoutputmembrane request CONNECTION_ID /path/to/endpoint| Flag | Description |
|---|---|
| HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET |
| Add a request header (repeatable), e.g. |
| Request body (string) |
| Shorthand to send a JSON body and set |
| Send the body as-is without any processing |
| Query-string parameter (repeatable), e.g. |
| Path parameter (repeatable), e.g. |
membrane request CONNECTION_ID /path/to/endpoint| 标志 | 描述 |
|---|---|
| HTTP方法(GET、POST、PUT、PATCH、DELETE)。默认为GET |
| 添加请求标头(可重复),例如 |
| 请求体(字符串) |
| 简写方式,用于发送JSON体并设置 |
| 按原样发送请求体,不进行任何处理 |
| 查询字符串参数(可重复),例如 |
| 路径参数(可重复),例如 |
membrane action list --intent=QUERYmembrane action list --intent=QUERY