A lightweight private npm proxy registry application with comprehensive package management, authentication, and web interface capabilities
—
CLI commands for server operation, configuration, and system information. The Verdaccio CLI is accessed via the verdaccio binary installed globally or locally.
Main server initialization command that starts the Verdaccio registry server.
class InitCommand extends Command {
/** Listen address option (host:port) */
listen: string;
/** Configuration file path option */
config: string;
/**
* Execute the server initialization
* @returns Promise that resolves when server starts or rejects on error
*/
execute(): Promise<void>;
}Usage Examples:
# Start server with default configuration (looks for ./config.yaml)
verdaccio
# Start with custom configuration file
verdaccio --config /path/to/custom-config.yaml
verdaccio -c ./my-config.yaml
# Start on custom host and port
verdaccio --listen localhost:5000
verdaccio -l 0.0.0.0:4873
# Combine options
verdaccio --config ./production.yaml --listen 0.0.0.0:4873The init command:
VERDACCIO_HANDLE_KILL_SIGNALS=true)Display the current Verdaccio version.
class VersionCommand extends Command {
/**
* Execute version display
* @returns Promise that resolves after displaying version
*/
execute(): Promise<void>;
}Usage Examples:
# Display version
verdaccio --version
verdaccio -vOutput format: v6.1.6
Display comprehensive environment and system information for debugging and support.
class InfoCommand extends Command {
/**
* Execute system information display
* @returns Promise that resolves after displaying info
*/
execute(): Promise<void>;
}Usage Examples:
# Display system information
verdaccio --info
verdaccio -iInformation includes:
All commands support these global patterns:
--help: Display command help information--version / -v: Display version (VersionCommand)--info / -i: Display system info (InfoCommand)--config <path> / -c <path>: Specify configuration file path
./config.yaml--listen <address> / -l <address>: Specify listen address
localhost:4873host:port, port, or unix:/path/to/socketlocalhost:4873, 0.0.0.0:5000, 4873CLI commands handle various error conditions:
0: Success1: Configuration or startup error2: HTTPS certificate or server creation error255: Uncaught exceptionWhen set to "true", enables graceful shutdown handling for:
SIGINT (Ctrl+C)SIGTERM (termination signal)SIGHUP (hangup signal)VERDACCIO_HANDLE_KILL_SIGNALS=true verdaccioStandard Node.js environment variable, defaults to "production" for the Express application.
The CLI sets the process title based on configuration:
"verdaccio"web.title configuration optionFor testing and automation, the server sends a verdaccio_started message via process.send() when the server is ready (if running as a child process).
Install with Tessl CLI
npx tessl i tessl/npm-verdaccio