All products are showing out of stock?

If you are getting “out of stock” on all products though you have product quantities available, use this command:

$hide_out_of_stock()