In a large, wide-mouth mason jar (with an airtight lid), add the sliced onions, salt, sugar, pickling spices, apple cider vinegar, and optional garlic cloves.
Stir the ingredients with a long spoon. Allow it to cool on the counter. When it’s cool, cover the jar with the lid and shake it, to better combine the ingredients.