Starting LibreOffice Software With Parameters

By starting LibreOffice software from the command line you can assign various parameters, with which you can influence the performance. The use of command line parameters is only recommended for experienced users.


For normal handling, the use of command line parameters is not necessary. A few of the parameters require a deeper knowledge of the technical background of LibreOffice software technology.

Starting LibreOffice Software From the Command Line

Valid Command Line Parameters

Using without special arguments

Using without any arguments opens the start center.


Tries to open the file (files) in the components suitable for them.

{file} macro://./[Library.Module.MacroName]

Opens the file and applies specified macros from the file.

Getting help and information



--help / -h / -?

Lists the available command line parameters to the console.


Opens LibreOffice built-in or online Help on Writer.


Opens LibreOffice built-in or online Help on Calc.


Opens LibreOffice built-in or online Help on Draw.


Opens LibreOffice built-in or online Help on Impress.


Opens LibreOffice built-in or online Help on Base.


Megnyitja a LibreOffice beépített vagy online Basic szkriptelési súgóját.


Opens LibreOffice built-in or online Help on Math.


Shows LibreOffice version and quits.


(macOS sandbox only) Returns path of the temporary directory for the current user and exits. Overrides all other arguments.

General arguments




Activates[Deactivates] the Quickstarter service. It can take only one parameter no which deactivates the Quickstarter service. Without parameters this service is activated.


Disables check for remote instances using the installation.


Forces an input filter type, if possible. For example:

--infilter="Calc Office Open XML"

--infilter="Text (encoded):UTF8,LF,Liberation Mono,en-US".


Store soffice.bin pid to {file}.

--display {display}

Sets the DISPLAY environment variable on UNIX-like platforms to the value {display}. This parameter is only supported by the start script for LibreOffice software on UNIX-like platforms.

User/programmatic interface control




Disables the splash screen at program start.


Starts minimized. The splash screen is not displayed.


Starts without displaying anything except the splash screen.


Starts in invisible mode.

Neither the start-up logo nor the initial program window will be visible. LibreOffice software can be controlled, and documents and dialogs can be controlled and opened via the API.

Using the parameter, LibreOffice can only be ended using the taskmanager (Windows) or the kill command (UNIX-like systems).

It cannot be used in conjunction with --quickstart.

More information is found in LibreOffice Developer's Guide.


Starts in "headless mode" which allows using the application without user interface.

This special mode can be used when the application is controlled by external clients via the API.


Disables restart and file recovery after a system crash.


Starts in a safe mode, i.e. starts temporarily with a fresh user profile and helps to restore a broken configuration.


Notifies LibreOffice software that upon the creation of "UNO Acceptor Threads", a "UNO Accept String" will be used.

UNO-URL is string the such kind uno:connection-type,params;protocol-name,params;ObjectName.

More information is found in LibreOffice Developer's Guide.


Closes an acceptor that was created with --accept={UNO-URL}. Use --unaccept=all to close all open acceptors.


Uses specified language, if language is not selected yet for UI. The lang is a tag of the language in IETF language tag.

Developer arguments




Exit after initialization complete (no documents loaded).


Exit after loading documents.

New document creation arguments


The arguments create an empty document of specified kind. Only one of them may be used in one command line. If filenames are specified after an argument, then it tries to open those files in the specified component.




Starts with an empty Writer document.


Starts with an empty Calc document.


Starts with an empty Draw document.


Starts with an empty Impress document.


Starts with an empty Math document.


Starts with an empty Writer master document.


Starts with an empty HTML document.

File open arguments


The arguments define how following filenames are treated. New treatment begins after the argument and ends at the next argument. The default treatment is to open documents for editing, and create new documents from document templates.




Treats following files as templates for creation of new documents.


Opens following files for editing, regardless whether they are templates or not.

--pt {Printername}

Prints the following files to the printer {Printername} and ends. The splash screen does not appear.

Ha a fájlnév tartalmaz szóközöket, akkor ezt idézőjelek közé kell tenni.

If used multiple times, only last {Printername} is effective for all documents of all --pt runs.

Also, --printer-name argument of --print-to-file switch interferes with {Printername}.


Prints following files to the default printer, after which those files are closed. The splash screen does not appear.

If the file name contains spaces, then it must be enclosed in quotation marks.


Opens following files in viewer mode (read-only).


Opens and starts the following presentation documents of each immediately. Files are closed after the showing. Files other than Impress documents are opened in default mode , regardless of previous mode.

--convert-to OutputFileExtension
[--outdir output_dir]

If --convert-to is used more than once, last value of OutputFileExtension[:OutputFilterName[:OutputFilterParams]] is effective. If --outdir is used more than once, only its last value is effective. For example:

--convert-to pdf *.doc

--convert-to pdf:writer_pdf_Export --outdir /home/user *.doc

--convert-to "html:XHTML Writer File:UTF8" *.doc

--convert-to "txt:Text (encoded):UTF8" *.doc

See the list of document filters for file conversion.

The list of filter options for Lotus, dBase and Diff files.

The list of filter options for CSV files.

--print-to-file [--printer-name printer_name] [--outdir output_dir]

Batch print files to file. If --outdir is not specified, then current working directory is used as output_dir.

If --printer-name or --outdir used multiple times, only last value of each is effective. Also, {Printername} of --pt switch interferes with --printer-name. For example:

--print-to-file *.doc

--print-to-file --printer-name nasty_lowres_printer --outdir /home/user *.doc


Applies filter "txt:Text" to the following text documents and dump text content to console (implies --headless). Cannot be used with --convert-to.


Set a bootstrap variable. For example, to set a non-default user profile path:

Ignored switches




Ignored (macOS only)


Ignored (COM+ related; Windows only)


Does nothing, accepted only for backward compatibility.

--protector {arg1} {arg2}

Used only in unit tests and should have two arguments.

Támogasson minket!