CLI Installation

Get started with Slot's CLI tools by following these installation steps. The CLI tools enable advanced template management capabilities like scraping and custom analysis.

Note: The CLI tools are optional. You only need them if you want to customize your template index or add your own templates. For most users, the MCP server is sufficient.

Prerequisites

  • Node.js 18 or later
  • Git (for repository access)
  • GitHub token (for template scraping)
  • OpenAI API key (for template analysis)

Installation Steps

1. Install the CLI

Install the Slot CLI globally using npm:

npm install -g slot-starters

2. Configure API Keys

Set up your GitHub token and OpenAI API key:

# Set GitHub token for template scraping
export SLOT_GITHUB_TOKEN=your_github_token_here

# Set OpenAI API key for template analysis
export OPENAI_API_KEY=your_openai_key_here

You can also add them to your .env file:

SLOT_GITHUB_TOKEN=your_github_token_here
OPENAI_API_KEY=your_openai_key_here

Next Steps

Learn how to scrape templates in the Scraping guide, or explore template analysis in the Analysis guide.