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://grafbase.com/" --jsonstate: "READY"membrane connection ensuremembrane connection ensure "https://grafbase.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 |
|---|---|---|
| Get Available Mutations | get-available-mutations | List all available mutation operations in the schema |
| Get Available Queries | get-available-queries | List all available query operations in the schema |
| Execute Persisted Query | execute-persisted-query | Execute a persisted/trusted document query by its hash |
| Get Type Details | get-type-details | Get detailed information about a specific GraphQL type |
| List Schema Types | list-types | List all types defined in the GraphQL schema |
| Batch GraphQL Operations | batch-graphql-operations | Execute multiple GraphQL operations in a single request |
| Introspect Schema | introspect-schema | Fetch the GraphQL schema using introspection query |
| Execute GraphQL Mutation | graphql-mutation | Execute a GraphQL mutation against the Grafbase endpoint |
| Execute GraphQL Query | graphql-query | Execute a GraphQL query against the Grafbase endpoint |
| 名称 | 标识 | 描述 |
|---|---|---|
| 获取可用Mutations | get-available-mutations | 列出架构中所有可用的mutation操作 |
| 获取可用Queries | get-available-queries | 列出架构中所有可用的query操作 |
| 执行持久化查询 | execute-persisted-query | 通过哈希执行持久化/受信任的文档查询 |
| 获取类型详情 | get-type-details | 获取特定GraphQL类型的详细信息 |
| 列出架构类型 | list-types | 列出GraphQL架构中定义的所有类型 |
| 批量GraphQL操作 | batch-graphql-operations | 在单个请求中执行多个GraphQL操作 |
| 自省架构 | introspect-schema | 使用自省查询获取GraphQL架构 |
| 执行GraphQL Mutation | graphql-mutation | 向Grafbase端点执行GraphQL mutation |
| 执行GraphQL Query | graphql-query | 向Grafbase端点执行GraphQL query |
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