Create Presentation Via CLI/Terminal
NEWCreate stunning AI-powered presentations directly from your terminal. The MagicSlides CLI is a developer-friendly command-line tool that enables fast presentation creation, perfect for automation, CI/CD pipelines, and AI coding assistants.
Features
- Fast: Create presentations in seconds without leaving your terminal
- AI-Powered: Leverage advanced AI to generate professional slides
- Multi-Language: Support for 40+ languages
- URL Support: Create presentations from any web article or blog post
- Developer-Friendly: Perfect for automation and AI assistants
- Customizable: Control slide count, language, and topics
Installation
Global Installation (Recommended)
npm install -g magicslides
# or
yarn global add magicslidesLocal Installation
npm install magicslides
# or
yarn add magicslidesQuick Start
1. Get Your API Key
- Visit the MagicSlides Dashboard
- Navigate to Settings → API Keys
- Generate a new API key
2. Login
# Interactive prompt
magicslides login
# Or provide API key directly
magicslides login --key sk_your_api_key_here3. Create Your First Presentation
magicslides create --topic "Introduction to Quantum Computing" --slides 10Commands Overview
magicslides --help # Show all commands
magicslides login # Configure API key
magicslides create # Create from topic
magicslides create-url # Create from URLLogin Command
Authenticate with your MagicSlides API key:
Usage
# Interactive prompt
magicslides login
# With API key flag
magicslides login --key sk_your_api_key_hereOptions
-k, --key <apiKey>
Provide API key directly
Create Command
Create a presentation from a topic:
Basic Usage
# Basic usage
magicslides create --topic "Climate Change Solutions"
# With custom options
magicslides create --topic "AI in Healthcare" --slides 15 --language es
# Interactive mode
magicslides create --interactiveOptions
-t, --topic <topic>
Presentation topic
Required (unless interactive)
-s, --slides <number>
Number of slides (1-50)
Default: 5
-l, --language <code>
Language code (ISO 639-1)
Default: en
-i, --interactive
Enable interactive mode with prompts
Optional
Examples
# Create a 5-slide presentation in English
magicslides create --topic "Getting Started with Docker"
# Create a 20-slide presentation in Spanish
magicslides create --topic "Inteligencia Artificial" --slides 20 --language es
# Create in French with 8 slides
magicslides create -t "Introduction à Python" -s 8 -l fr
# Interactive mode (prompts for all options)
magicslides create -iCreate from URL Command
Create a presentation from a web article or blog post:
Basic Usage
# Basic usage
magicslides create-url --url "https://techcrunch.com/ai-article"
# With custom options
magicslides create-url --url "https://example.com/blog" --slides 12 --language de
# Interactive mode
magicslides create-url --interactiveOptions
-u, --url <url>
URL to create presentation from
Required (unless interactive)
-s, --slides <number>
Number of slides (1-50)
Default: 5
-l, --language <code>
Language code (ISO 639-1)
Default: en
-i, --interactive
Enable interactive mode with prompts
Optional
Examples
# Create from TechCrunch article
magicslides create-url --url "https://techcrunch.com/2024/01/15/ai-news"
# Create from blog with 10 slides
magicslides create-url -u "https://medium.com/@author/article" -s 10
# Interactive mode
magicslides create-url -iSupported Languages
The CLI supports 40+ languages using ISO 639-1 codes. Common examples:
| Language | Code | Language | Code |
|---|---|---|---|
| English | en | Spanish | es |
| French | fr | German | de |
| Italian | it | Portuguese | pt |
| Russian | ru | Japanese | ja |
| Korean | ko | Chinese | zh |
| Arabic | ar | Hindi | hi |
Configuration
The CLI stores your API key securely in:
- macOS/Linux:
~/.config/configstore/magicslides.json - Windows:
%APPDATA%/configstore/magicslides.json
Reset Configuration
# Remove the config file manually
rm ~/.config/configstore/magicslides.json
# Then login again
magicslides loginUse with AI Assistants
The CLI is designed to work seamlessly with AI coding assistants like Claude, ChatGPT, and GitHub Copilot.
Example Prompt for Claude
Create a presentation about "Machine Learning Basics" with 10 slides using MagicSlides CLIExample Automation Script
#!/bin/bash
# Create multiple presentations
topics=("AI Basics" "Deep Learning" "Neural Networks")
for topic in "${topics[@]}"; do
magicslides create --topic "$topic" --slides 8
doneUse in Node.js Scripts
const { exec } = require('child_process')
exec('magicslides create --topic "Node.js Basics" --slides 10', (error, stdout) => {
if (error) {
console.error(`Error: ${error.message}`)
return
}
console.log(stdout)
})Advanced Examples
Create Multiple Presentations
# From a list of topics
for topic in "AI" "ML" "DL"; do
magicslides create --topic "$topic" --slides 5
doneCreate from Multiple URLs
# From a file containing URLs
while read url; do
magicslides create-url --url "$url" --slides 8
done < urls.txtAPI Rate Limits
- Free tier: 10 presentations/month
- Pro tier: 100 presentations/month
- Enterprise: Unlimited
Check your usage at the Dashboard.
Troubleshooting
Authentication Issues
Problem: "Authentication required" error
Solution:
- Make sure you've run
magicslides login - Verify your API key is correct
- Check that your API key hasn't expired
API Key Not Working
Problem: "Invalid API key" error
Solution:
- Ensure your API key starts with
sk_ - Generate a new API key from the dashboard
- Run
magicslides loginagain with the new key
Network Errors
Problem: "No response from server" error
Solution:
- Check your internet connection
- Verify you can access https://magicslides.app
- Try again in a few minutes (server might be temporarily down)
Rate Limit Exceeded
Problem: "Rate limit exceeded" error
Solution:
- Check your current usage at the Dashboard
- Upgrade your plan if needed
- Wait until your limit resets (monthly)