Documentation
CLI Reference
spark init

spark init

Interactive setup for IDE integration.

Synopsis

spark init

Description

spark init walks you through setting up Spark for your IDE and the current project (or globally). It prompts you to pick a scope (project or global) and a set of IDEs (Claude Code, and/or "Other" for Cursor / Windsurf / etc.), then installs the appropriate integration for each.

For Claude Code, spark init runs:

claude plugin marketplace add memcoai/marketplace
claude plugin install spark-cli@MemCo --scope <project|user>

For Other IDEs (Cursor, Windsurf, Codex CLI, etc.), spark init installs agent skills via the skills CLI (opens in a new tab) — by default npx skills add memcoai/spark-cli-skills (or memcoai/spark-teams-cli-skills for Teams accounts).

If you want a faster, non-interactive setup that always uses project scope, use spark enable instead.

You only need to run spark init once per project (or once globally). After setup, your AI agent will use Spark on every task.

Arguments

This command has no required arguments.

Flags

This command has no command-specific flags. Global flags apply.

Interactive prompts

  1. Scope — Project (only this directory) or global (all projects).
  2. IDE selection — Multi-select between Claude Code and Other (Cursor / Windsurf / Codex / etc.).

What it installs

IDE selectionIntegration
Claude Codespark-cli@MemCo plugin from the memcoai/marketplace Claude Code marketplace
OtherAgent skills via npx skills add memcoai/spark-cli-skills (or memcoai/spark-teams-cli-skills for Teams)

The variant (spark-cli vs spark-teams-cli) is detected from your authenticated organization.

Examples

Interactive setup

cd my-project
spark init

Follow the prompts to choose scope and IDEs.

Typical first-run flow

# 1. Install the CLI
npm install -g @memco/spark
 
# 2. Authenticate
spark login
 
# 3. Set up IDE integration
spark init
 
# 4. Start coding — your agent now uses Spark on every task

Verify setup

spark status

After running spark init, use spark status to confirm the integration is active and up to date.

Related commands