Z-pass rendered black via command line, render with UI is OK

The last image was rendered from blender UI
All the rest blacks using command line without UI, all settings were kept in file.
Why is that? Ideas?

I think uploading the blend somewhere and sharing link would be good here. Replace mesh with simple cube if you want, object in file is not that relevant.

How exactly did you render in UI and which command did you use for command line?