A ubolt (hardware store) would work (used for metal cables for tents and for laundry lines).
If you need something that doesn’t require tools for the tent, there are cam devices, or learning to make a bowline knot (very common for a tent and with boats)