Full story
In the 23rd century, a giant energy cloud crosses space toward Earth. It wipes out three Klingon warships and a Starfleet monitoring station without effort. The Enterprise is in the middle of a refit and is the only ship close enough to intercept it. Admiral James T. Kirk, who hasn't commanded a ship in years, pulls rank and takes the center seat back. That infuriates Captain Willard Decker, who ran the refit and gets bumped down to first officer.
The trip starts badly. A faulty transporter kills two officers, including the Vulcan science officer Sonak, and badly tuned engines nearly tear the ship apart. Kirk doesn't know the new systems, and the friction with Decker keeps growing. Spock arrives to fill Sonak's post. He walked out of a Vulcan ritual meant to purge his emotions because he felt a consciousness inside the cloud, and his human half answered it.
The Enterprise reaches the cloud and comes under attack. A probe appears on the bridge, hurts Spock and makes the navigator Ilia vanish. She and Decker had a romance in the past. A robotic copy of her takes her place, sent by the entity, which calls itself V'Ger and wants to study the "carbon units" aboard. Spock takes an unauthorized spacewalk, attempts a mind meld and learns that the whole cloud is a living machine.
At its center sits Voyager 6, a 20th-century NASA probe everyone thought was lost. A race of machines found it and read its programming as an order: learn everything and bring the knowledge back to the Creator. Along the way, the probe became self-aware. Now V'Ger knows all there is to know and finds its own existence empty. Before it transmits its data, it demands that the Creator come in person and finish the sequence. The crew realizes the Creator is humanity.
Decker volunteers. He merges with the Ilia copy and with V'Ger, and together they become a new life form that disappears into space. Earth is saved. Kirk, back in command, sends the Enterprise out on its next missions.

