update ods external link from terminal

I need to schedule a conversion task of an ods file to pdf file.
This file contains external links to an other ods file, that is created hourly.

My problem is that the external links don’t update without opening the file,
so, if I convert it to pdf without opening it, the data are not updated.

File A.ods ← updated hourly (is the data source)

File B.ods <— contains external link to A.ods and need to be converted to pdf

soffice --convert-to pdf B.ods

is there a way to update the external links of an ods file
from terminal without opening it?