New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@swotpal/cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swotpal/cli

The world's only SWOT analysis tool with a CLI. Generate AI-powered SWOT analyses from your terminal.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@swotpal/cli

The world's only SWOT analysis tool with a CLI.

Generate AI-powered SWOT analyses from your terminal. Powered by SWOTPal.

Installation

npm install -g @swotpal/cli

Quick Start

# Set your API key
swotpal login              # Opens browser to get your key
swotpal config set-key     # Paste your API key

# Generate a SWOT analysis
swotpal analyze "Tesla"

# Compare two companies
swotpal compare "Apple" "Samsung"

# Browse 33 built-in examples (offline, no API key needed)
swotpal examples
swotpal examples tesla

Commands

swotpal analyze <topic>

Generate a SWOT analysis for any company, brand, product, or topic.

swotpal analyze "Netflix"
swotpal analyze "Tesla 2026" --language ja
swotpal analyze "OpenAI" --json | jq '.strengths'

swotpal compare <left> <right>

Compare two entities side-by-side with SWOT analysis for each.

swotpal compare "Tesla" "BYD"
swotpal compare "ChatGPT" "Claude" --markdown

swotpal list

List your saved SWOT analyses.

swotpal list
swotpal list --page 2 --limit 20
swotpal list --json

swotpal show <id>

Show details of a specific saved analysis.

swotpal show abc123
swotpal show abc123 --json

swotpal examples [id]

Browse 33 built-in SWOT analysis examples. Works offline, no API key required.

swotpal examples                      # List all
swotpal examples --industry fashion   # Filter by industry
swotpal examples --search nvidia      # Search by name
swotpal examples tesla                # Show specific example

swotpal config

Manage CLI configuration.

swotpal config show                   # Show current config
swotpal config set-key                # Set API key interactively
swotpal config set-language ja        # Set default language

swotpal login

Open the SWOTPal dashboard in your browser to get an API key.

Global Options

OptionDescription
--jsonOutput as machine-readable JSON
--markdownOutput as Markdown
--language <lang>Set analysis language (en, ja, zh_TW, ko, etc.)
-V, --versionShow version
-h, --helpShow help

Authentication

Get your API key at swotpal.com/dashboard, then:

# Option 1: Environment variable
export SWOTPAL_API_KEY=sk_live_...

# Option 2: CLI config (persisted)
swotpal config set-key

Output Formats

# Pretty terminal output (default)
swotpal analyze "Tesla"

# JSON (pipe to jq, save to file, etc.)
swotpal analyze "Tesla" --json > tesla-swot.json

# Markdown (great for docs and READMEs)
swotpal analyze "Tesla" --markdown >> strategy.md

Supported Languages

en, ja, zh_TW, zh, ko, vi, pt, de, es, fr, it, ru

Requirements

  • Node.js 20+
  • API key from swotpal.com

License

MIT

Keywords

swot

FAQs

Package last updated on 17 Mar 2026

Related posts