CLI

The Membrane CLI lets you manage integrations, run actions, and sync configuration from your terminal.

Install

npm install -g @membranehq/cli

Authenticate

membrane login

Or set credentials via environment variables:

export MEMBRANE_ACCESS_TOKEN="your-token-here"

Commands

Setup & Configuration

CommandDescription
membrane initInitialize a Membrane project in the current directory
membrane loginAuthenticate with Membrane
membrane logoutClear stored credentials
membrane configView or modify configuration
membrane statusShow current workspace status

Working with Integrations

CommandDescription
membrane connectCreate a new connection to an external app
membrane connectionManage existing connections
membrane actionRun or manage actions
membrane searchSearch Membrane resources
membrane openOpen a resource in the browser (Console)

Sync & Deploy

CommandDescription
membrane pullPull configuration from Membrane to local files
membrane pushPush local configuration to Membrane
membrane syncSync local and remote state
membrane diffShow differences between local and remote
membrane testRun integration tests
membrane codegenGenerate code from Membrane configuration

Agent & MCP

CommandDescription
membrane mcpLaunch an MCP server for AI agents
membrane agent-sessionManage agent sessions

Configuration

The CLI reads configuration from membrane.config.yml in your project root, or from environment variables:

Environment VariableDescription
MEMBRANE_ACCESS_TOKENAPI access token
MEMBRANE_WORKSPACE_KEYWorkspace key (alternative to access token)
MEMBRANE_WORKSPACE_SECRETWorkspace secret (used with workspace key)

Global Options

membrane --verbose    # Enable debug logging
membrane --version    # Show CLI version