Slice the onions into thin even rings, preferably using a mandolin or similar
Add salt, lemon juice, chili powder, and cilantro to the onions and mix together well in a bowl.
Transfer to a jar, add a little vinegar so not too many of the onions are above the liquid level, and screw the lid on solidly. Refrigerate for 2 hours, shaking the mixture occasionally.