CLI Commands

Learn about all available commands in the LeetCode Ghost Window CLI.

Overview

The LeetCode Ghost Window CLI provides a set of commands to interact with the application from your terminal. Below is a comprehensive list of available commands and their options.

leet-joseok --help

This will display the help menu with all available commands and their descriptions.

Available Commands

init

Initializes and launches the LeetCode Ghost Window application.

leet-joseok init

This command will:

  • Search for your installed LeetCode Ghost Window application
  • Launch it with ghost mode enabled
  • Apply any configuration settings you've saved

Example Output


    ╭───────────────────────────────────────╮
    │                                       │
    │    LeetCode Ghost Window CLI          │
    │    v1.5.0                             │
    │                                       │
    ╰───────────────────────────────────────╯

✓ LeetCode Ghost Window successfully launched!

You can now use the application to solve LeetCode problems.

Press Ctrl+C in this terminal to exit the CLI (the app will keep running).

config

Manages configuration settings for the LeetCode Ghost Window.

leet-joseok config <action>

Available actions:

Set a configuration value

leet-joseok config set <key> <value>

Example: leet-joseok config set apiKey YOUR_OPENAI_API_KEY

Get a configuration value

leet-joseok config get <key>

Example: leet-joseok config get apiKey

List all configuration values

leet-joseok config list

capture

Captures a screenshot of the current screen.

leet-joseok capture

Note: This command is planned for future implementation. Currently, capturing is only available through the desktop application using keyboard shortcuts.

process

Processes captured screenshots with AI to generate a solution.

leet-joseok process

Note: This command is planned for future implementation. Currently, processing is only available through the desktop application using keyboard shortcuts.

help

Displays help information about LeetCode Ghost Window CLI.

leet-joseok help

You can also get help for a specific command:

leet-joseok help <command>

--version

Displays the current version of the LeetCode Ghost Window CLI.

leet-joseok --version

Command Flags

Some commands support additional flags to modify their behavior:

--quiet, -q

Reduces the output verbosity, showing only essential information.

leet-joseok init --quiet

--help, -h

Displays help information for a command.

leet-joseok config --help

Configuration Options

The following configuration options can be set using the config set command:

KeyDescriptionExample
apiKeyYour OpenAI API key for AI processingleet-joseok config set apiKey sk-abcd...
ghostModeWhether ghost mode is enabledleet-joseok config set ghostMode true
languagePreferred programming languageleet-joseok config set language python
themeUI theme (dark or light)leet-joseok config set theme dark