DocsCLI

Lamatic CLI (Beta)

@lamatic/cli is the official command-line interface for managing your Lamatic organization. Create projects, manage flows, trigger deployments, and configure contexts and integrations, all from the terminal.


Installation

Install globally to use the lamatic command anywhere:

npm install -g @lamatic/cli

Or run on demand without installing:

npx @lamatic/cli <command>

Authentication

Authenticate once with your API key, organization ID, and user ID. Credentials are cached locally so subsequent commands don’t require re-entering them.

lamatic auth login \
  --api-key <YOUR_API_KEY> \
  --org-id <YOUR_ORG_ID> \
  --user-id <YOUR_USER_ID>

Your organization ID and API key come from Studio → Settings → API Keys, same as API Keys. Your user ID is your Lamatic account identifier, visible in your organization’s members list in Studio.

CommandDescription
lamatic auth loginAuthenticate with your API key
lamatic auth statusCheck current auth status
lamatic auth logoutLogout and clear credentials

Help

lamatic --help
lamatic <command> --help

Commands

Projects

CommandDescription
lamatic init <name>Create a new Lamatic project
lamatic project listList all projects in your org
lamatic project getFetch and download a project locally
lamatic project deleteDelete a project
# Create a new project
lamatic init my-project --scratch
 
# List all projects
lamatic project list
 
# Download an existing project locally
lamatic project get --project-id <PROJECT_ID>
 
# Delete a project
lamatic project delete --project-id <PROJECT_ID>

Flows

CommandDescription
lamatic flows createCreate a new flow in a project
lamatic flows listList all flows in a project
lamatic flows renameRename a flow
lamatic flows deleteDelete a flow
lamatic flows statusUpdate flow status (active/inactive)
# Create a flow
lamatic flows create --project-id <PROJECT_ID> --name "My Flow"
 
# List all flows
lamatic flows list --project-id <PROJECT_ID>
 
# Rename a flow
lamatic flows rename --project-id <PROJECT_ID> --flow-id <FLOW_ID> --name "New Name"
 
# Delete a flow
lamatic flows delete --project-id <PROJECT_ID> --flow-id <FLOW_ID>
 
# Update flow status
lamatic flows status --project-id <PROJECT_ID> --flow-id <FLOW_ID> --status active

Deployments

CommandDescription
lamatic deployTrigger a deployment for a project
lamatic deployments listList all deployments
lamatic deployments getGet details of a specific deployment
# Trigger a deployment
lamatic deploy --project-id <PROJECT_ID>
 
# List all deployments
lamatic deployments list --project-id <PROJECT_ID>
 
# Get deployment details
lamatic deployments get --project-id <PROJECT_ID> --deployment-id <DEPLOYMENT_ID>

Contexts

CommandDescription
lamatic contexts listList all contexts in a project
lamatic contexts createCreate a new context (vector or memory)
lamatic contexts deleteDelete a context
# List contexts
lamatic contexts list --project-id <PROJECT_ID>
 
# Create a context
lamatic contexts create --project-id <PROJECT_ID> --name "my-context" --type vector
 
# Delete a context
lamatic contexts delete --project-id <PROJECT_ID> --context-id <CONTEXT_ID>

Models

CommandDescription
lamatic models listList all model credentials
lamatic models addAdd a new model credential
# List model credentials
lamatic models list --project-id <PROJECT_ID>
 
# Add a model credential
lamatic models add --project-id <PROJECT_ID>

Integrations

CommandDescription
lamatic integrations listList all integration credentials
lamatic integrations addAdd a new integration
# List integrations
lamatic integrations list --project-id <PROJECT_ID>
 
# Add an integration
lamatic integrations add --project-id <PROJECT_ID>

Example Workflow

A typical end-to-end flow: log in, create a project, add a flow, deploy, and verify.

# 1. Login
lamatic auth login --api-key <key> --org-id <org_id> --user-id <user_id>
 
# 2. Create a new project
lamatic init my-project --scratch
 
# 3. List your projects to grab the project ID
lamatic project list
 
# 4. Create a flow inside the project
lamatic flows create --project-id <PROJECT_ID> --name "My Flow"
 
# 5. Deploy the project
lamatic deploy --project-id <PROJECT_ID>
 
# 6. Check deployment status
lamatic deployments list --project-id <PROJECT_ID>
 
# 7. Download an existing project locally
lamatic project get --project-id <PROJECT_ID>

  • npm package
  • API Keys: where to find the credentials this CLI uses
  • SDK: programmatic access from your application code
  • Graph MCP: execute deployed flows from any AI assistant

Was this page useful?

Subscribe to updates