Set the Safe Mode Using the CLI

When Asciidoctor is invoked via the CLI, the safe mode is set to UNSAFE by default.

Assign safe mode level

You can change the security level by executing one of the following commands:

-S, --safe-mode=SAFE_MODE

Sets the safe mode level of the document according to the assigned level (UNSAFE, SAFE, SERVER, SECURE).

--safe, asciidoctor-safe

Sets the safe mode level to SAFE. Provided for compatibility with the python AsciiDoc safe command.