The Membrane CLI lets you manage integrations, run actions, and sync configuration from your terminal.
npm install -g @membranehq/cli
Or set credentials via environment variables:
export MEMBRANE_ACCESS_TOKEN="your-token-here"
| Command | Description |
|---|
membrane init | Initialize a Membrane project in the current directory |
membrane login | Authenticate with Membrane |
membrane logout | Clear stored credentials |
membrane config | View or modify configuration |
membrane status | Show current workspace status |
| Command | Description |
|---|
membrane connect | Create a new connection to an external app |
membrane connection | Manage existing connections |
membrane action | Run or manage actions |
membrane search | Search Membrane resources |
membrane open | Open a resource in the browser (Console) |
| Command | Description |
|---|
membrane pull | Pull configuration from Membrane to local files |
membrane push | Push local configuration to Membrane |
membrane sync | Sync local and remote state |
membrane diff | Show differences between local and remote |
membrane test | Run integration tests |
membrane codegen | Generate code from Membrane configuration |
| Command | Description |
|---|
membrane mcp | Launch an MCP server for AI agents |
membrane agent-session | Manage agent sessions |
The CLI reads configuration from membrane.config.yml in your project root, or from environment variables:
| Environment Variable | Description |
|---|
MEMBRANE_ACCESS_TOKEN | API access token |
MEMBRANE_WORKSPACE_KEY | Workspace key (alternative to access token) |
MEMBRANE_WORKSPACE_SECRET | Workspace secret (used with workspace key) |
membrane --verbose # Enable debug logging
membrane --version # Show CLI version