mcpField
L
leadgenius-cli

leadgenius-cli

github.com/thierryteisseireMarketing & growth046 installsUpdated 26w ago
Repository

About leadgenius-cli

A command-line skill for operating the LeadGenius Pro B2B platform. It covers lead management, enrichment, scoring, pipeline automation, user administration, and related workflows, with both formatted terminal output and JSON for scripts.

Key features

  1. 01Search, list, import, and deduplicate leads
  2. 02Enrich and score leads
  3. 03Run automated demand pipelines
  4. 04Manage users, organizations, and campaigns
  5. 05Use interactive TUI or JSON output

Use cases

  1. 01Import leads from CSV and enrich records
  2. 02Run lead scoring and demand-generation workflows
  3. 03Provision platform users and manage access
  4. 04Pipe lead data into scripts using JSON output

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thierryteisseire/leadgenius-cli --skill leadgenius-cli

After installing, type/leadgenius-cliin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.gitignore
._package.json
package.json
.npmignore
LICENSE
README.md
package-lock.json
references/
cli_reference.md
use_cases.md
api_endpoints.md
workflows.md
src/cli/
client-picker.ts
src/cli/commands/
account-analysis.ts
campaigns.ts
companies.ts
auth.ts
config.ts
admin.ts
cognito.ts
epsimo.ts
fsd.ts
clients.ts
maintenance.ts
leads.ts
tables.ts
generate.ts
shares.ts
pipeline.ts
users.ts
org.ts

Details

From the project README

LeadGenius CLI Skill

Operate the LeadGenius Pro B2B platform from the command line. This skill provides the lgp CLI for lead management, enrichment, AI scoring, pipeline automation, user provisioning, and more.

Setup

Install the CLI globally:

npm install -g leadgenius-cli

Set the API key (persists across sessions):

lgp config set api-key lgp_YOUR_KEY_HERE
lgp auth test

Credentials are saved to ~/.leadgenius-cli/session.json and auto-loaded on subsequent runs.

Core Workflows

Search and list leads
# Smart search — auto-detects email, name, or URL, case-insensitive
lgp leads search -q "Jane Doe"
lgp leads search -q "[email protected]"

# List leads for a client (shows interactive client picker if -c omitted)
lgp leads list
lgp leads list -c <client-id> --limit 20
Import leads from CSV
lgp leads import --file leads.csv

CSV headers map directly to API fields: firstName, lastName, email, companyName, title, linkedinUrl, etc. The CLI prompts for client selection.

Enrich, score, and generate AI content
lgp tasks enrich --lead <id>
lgp tasks score --lead <id>
lgp tasks copyright --lead <id>
Run FSD pipeline (full automation)
lgp fsd run -c <client> --icp <id> --enrich --score
lgp fsd status <pipelineId>
lgp fsd campaigns
Provision a new user for UI login at last.leadgenius.app
# Creates Cognito user + CompanyUser + optional API key
lgp users provision -e [email protected] -p "SecurePass123!" --company-id <id> --role admin --group admin

# Set UI access (requires admin key)
lgp cognito set-attributes -e [email protected] --attributes '{"custom:allowed_views":"role:companyAdmin|*"}'
Manage territory companies
lgp companies list -c <client>
lgp companies leads <companyId>
lgp companies content-analysis <companyId>
lgp companies aggregate -c <client>
lgp companies events radar
EpsimoAI credits and threads

In TUI mode (lgp with no args), EpsimoAI authenticates automatically via Cognito token exchange. In CLI mode:

lgp epsimo activate --cognito-token <jwt>
lgp epsimo info -t <token>
lgp epsimo credits -t <token>
lgp epsimo threads -t <token>
Report bugs and request features
lgp maintenance bugs report --desc "Description of the issue" --email [email protected]
lgp maintenance enhancements request --desc "Feature idea" --email [email protected]
lgp maintenance bugs list

All Command Groups

GroupDescriptionKey Commands
authTest connectionauth test
leadsLead CRUD, search, import, deduplist, search -q, import --file, dedup
tasksBackground jobsenrich, score, copyright
fsdFull-Stack Demand pipelinerun, campaigns, status
companiesTerritory intelligencelist, leads, aggregate, events
usersUser managementlist, create, provision, menu-config
orgCompany managementlist, create, rename, add-user
cognitoCognito user pool (admin)list, get, create, set-attributes
epsimoEpsimoAI integrationactivate, info, credits, threads
tablesGeneric CRUD for any tablelist <Table>, create, update, delete
generateLead generationfrom-icp, direct, schedule
campaignsABM campaignslist, create
clientsClient managementlist, create
sharesShared linkscreate, extend, revoke
webhooksInbound eventslist, get, reprocess
maintenanceBugs & enhancementsbugs list/report, enhancements list/request
pipelineAnalytics--start --end
account-analysisAccount intelligencelist, analyze, export
adminBackups, PITR, systembackup, pitr, org-tree, views
configSession managementshow, set, get, reset

Output Format

By default, the CLI shows smart-formatted output with tables, colors, and progress bars. Use --format json for raw JSON (useful for piping to jq or scripts):

lgp leads list -c <id> --format json | jq '.data[].email'

Interactive TUI

Launch with no arguments for a menu-driven interface:

lgp

The TUI provides client picker dropdowns, auto-authentication for EpsimoAI, and all commands accessible via menus.

API Base URL

https://api.leadgenius.app/api/automation/

Environment Variables

VariableDescription
LGP_API_KEYAPI key (lgp_ prefix)
LGP_URLBase URL (default: https://api.leadgenius.app)
LGP_ADMIN_KEYAdmin key for cognito/admin commands

Reference Docs

Comments

Markdown supported