Again, just as in older English “herewith,” “hereupon,” and “heretofore,” German has parallel constructions. Examples are hiermit, hierauf, hierzu. We translate the hier– with “it,” “that,” or “those,” whichever fits the context, along with the preposition as appropriate. For example:
Hiermit schließen wir diese Übung.
With this we end this exercise.
Hierzu brauchen wir viel Geld.
To do that we need a lot of money.
[or:] For this purpose we will need a lot of money.
[or:] To achieve that we need a lot of money.