az bicep lint
Lint a Bicep file. Azure CLI reference
3 options Its page in the Azure CLI reference
Options
--diagnostics-formatSet diagnostics format.--file, -fThe path to the Bicep module file to lint in the file system.--no-restoreWhen set, generates the parameters file without restoring external modules.