Command line interface for Medusa Commerce platform with project creation, development server, and database management capabilities
—
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Pending
The risk profile of this skill
The Medusa CLI provides configuration management, telemetry controls, and utility functions for optimal development experience. These features are available globally and help customize the CLI behavior according to user preferences.
Control anonymous usage data collection for Medusa CLI analytics and improvement purposes.
medusa telemetry [options]Options:
--enable: Enable telemetry data collection (default behavior)--disable: Disable telemetry data collectionUsage Examples:
# Enable telemetry (default)
medusa telemetry --enable
# Disable telemetry
medusa telemetry --disable
# Check current telemetry status (no options)
medusa telemetryBehavior:
The telemetry system collects anonymous usage information:
Collected Data:
Privacy Protection:
Data Usage:
Telemetry preferences are managed through persistent configuration:
Storage Location:
Configuration Management:
The CLI automatically manages package manager preferences:
Automatic Detection:
Preference Storage:
// Package manager utility functions
function getPackageManager(): string;
function setPackageManager(packageManager: string): void;Supported Package Managers:
npm: Node Package Manager (default)yarn: Yarn Package ManagerPackage manager preferences are stored globally:
Storage Mechanism:
Preference Application:
All Medusa CLI commands support these global configuration options:
--verbose # Enable verbose output with detailed information
--no-color # Disable colored output for plain text
--no-colors # Alias for --no-color option
--json # Enable structured JSON logging formatOutput Modes:
Use Cases:
--help, -h # Display command help and usage information
--version, -v # Show CLI and project version informationHelp System:
Version Information:
The CLI includes intelligent command suggestion for mistyped commands:
Suggestion Algorithm:
Implementation:
function didYouMean(command: string, availableCommands: string[]): string;User Experience:
The CLI includes sophisticated progress reporting:
Activity System:
Progress Features:
The CLI automatically detects and integrates with project configurations:
Detection Mechanisms:
Configuration Precedence:
The CLI respects numerous environment variables:
Database Configuration:
DATABASE_URL: Primary database connection stringDB_*: Individual database connection parametersNODE_ENV: Environment-specific behavior controlDevelopment Configuration:
PORT: Default server port for development commandsCPUS: Default CPU count for cluster modeLOG_LEVEL: Logging verbosity controlLOG_FILE: Log output file specification