Displays the current status of the LM Studio local server via the CLI, including whether it is running and its configuration.
Arguments
- json
TRUEorFALSE. Output the status in machine-readable JSON format. Any other value,NULLandNAincluded, aborts before thelmsCLI runs.- verbose
TRUEorFALSE. Enable detailed logging output. Any other value,NULLandNAincluded, aborts before thelmsCLI runs.- quiet
TRUEorFALSE.TRUEpasses--quietto thelmsCLI, which suppresses all logging output. Therlmstudio.quietoption does not change it. Any other value,NULLandNAincluded, aborts before thelmsCLI runs.- log_level
Character. The level of logging to use (e.g., "info", "debug").
Value
By default, returns a character vector containing the raw CLI output.
If json = TRUE and the jsonlite package is available, it
returns a parsed list or data.frame of the status configuration.
Examples
if (FALSE) { # \dontrun{
lms_server_start()
# Get basic status string
lms_server_status()
# Get status as a parsed JSON data frame
lms_server_status(json = TRUE)
} # }