Is there a way to test if node is sync'd before running other commands cli?

Wondering because I’m farming a few forks and I’ve noticed a big load if they are resyncing at the same time. I just want to load up one at a time.

  • chia farm summary

  • chiafork farm summary

Or to check if wallet is synced:

  • chia wallet show

Thanks, yes those I’m aware. Instead of ‘show’ I should have said ‘test’. I’m looking to automate starting all the farming nodes via a .sh file on Ubuntu. I want to be able to test each one with an if statement or something to make sure it is synced before starting the next fork.