spark init
Interactive setup for IDE integration.
Synopsis
spark initDescription
spark init walks you through setting up Spark for your IDE and project. It prompts you to choose your IDE (Claude Code, Cursor, Windsurf, or Other) and whether to configure at the project level or globally.
Based on your selections, it installs the appropriate integration. For Claude Code, it installs the Spark marketplace plugin. For Cursor and Windsurf, it runs npx skills add memcoai/spark-cli-skills to install agent skills that teach the IDE how to use Spark commands.
If you want a faster, non-interactive setup, use spark enable instead.
You only need to run spark init once per project (or once globally). After setup, your AI agent will automatically use Spark when solving problems.
Arguments
This command has no required arguments.
Flags
This command has no additional flags beyond global flags.
Interactive prompts
- IDE selection — Choose from Claude Code, Cursor, Windsurf, or Other
- Scope — Project-level (affects only the current project) or global (affects all projects)
What it installs
| IDE | Integration |
|---|---|
| Claude Code | Spark marketplace plugin |
| Cursor | Agent skills via npx skills add memcoai/spark-cli-skills |
| Windsurf | Agent skills via npx skills add memcoai/spark-cli-skills |
| Other | Configuration files for manual integration |
Examples
Interactive setup
cd my-project
spark initFollow the prompts to select your IDE and scope.
Typical 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 automaticallyVerify setup
spark statusAfter running spark init, use spark status to confirm the integration is active.
Related commands
spark enable— Quick non-interactive project setupspark disable— Remove Spark from the current projectspark status— Verify setup and configuration- Global Flags — Flags available on all commands