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 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

  1. IDE selection — Choose from Claude Code, Cursor, Windsurf, or Other
  2. Scope — Project-level (affects only the current project) or global (affects all projects)

What it installs

IDEIntegration
Claude CodeSpark marketplace plugin
CursorAgent skills via npx skills add memcoai/spark-cli-skills
WindsurfAgent skills via npx skills add memcoai/spark-cli-skills
OtherConfiguration files for manual integration

Examples

Interactive setup

cd my-project
spark init

Follow 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 automatically

Verify setup

spark status

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

Related commands