authentication
Memberstack CLI for Cron Jobs
Use the Memberstack CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 4 read 3 write Bearer token auth
Memberstack CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. The Memberstack CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Memberstack CLI for Cron Jobs
kosmokrator integrations:configure memberstack --set access_token="$MEMBERSTACK_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call memberstack.memberstack_list_members '{"limit":1,"page":1}' --json Discovery Before Execution
Agents and scripts can inspect Memberstack docs and schemas before choosing a function.
kosmo integrations:docs memberstack --json
kosmo integrations:docs memberstack.memberstack_list_members --json
kosmo integrations:schema memberstack.memberstack_list_members --json
kosmo integrations:search "Memberstack" --json
kosmo integrations:list --json Useful Memberstack CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
memberstack.memberstack_list_members | Read | limit, page | List members from Memberstack with pagination. Returns member IDs, emails, plan assignments, and metadata. |
memberstack.memberstack_get_member | Read | id | Get detailed information about a single Memberstack member by their ID, including email, plan, and custom metadata. |
memberstack.memberstack_create_member | Write | email, password, planId, metadata | Create a new member in Memberstack. Requires an email address. Optionally set a password, assign a plan, and attach custom metadata. |
memberstack.memberstack_update_member | Write | id, email, planId, metadata | Update an existing Memberstack member. Provide the member ID and any fields to change (email, plan assignment, or custom metadata). |
memberstack.memberstack_delete_member | Write | id | Permanently delete a member from Memberstack. This action is irreversible and removes all associated data. |
memberstack.memberstack_list_plans | Read | none | List all membership plans configured in Memberstack. Returns plan IDs, names, pricing, and billing details. |
memberstack.memberstack_get_current_user | Read | none | Get the currently authenticated user from Memberstack. Useful for verifying API credentials and checking account details. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.