My doctor used a tiny needle or scalpel. But it was painless, with a quick recovery.
Then a device (the same device which made the cut? I'm not sure) uses ultrasound to liquify the lens and vacuum it out.
Then another device unrolls the new lens, like a carpet.
This new lens only comes in 1/2 diopters, it's not custom crafted (unless things have changed) which mean you might not get perfect correction. But close to.
Not the inside of the new artificial lens, but the eye sack that held the old lens.