The method you use will depend on the material you’re attaching the light to. If you’re working with wood, then you can use a screw eye or cup hook. A cup hook will work fine for somewhere that doesn’t get a lot of exposure to the elements. A screw eye and carabiner will create a solid attachment that’s perfect for places that experience high wind. Both of these methods will provide a long-term and corrosion-resistant hanging method. Skip the nails that can damage the cable and rust.