Press the key combination ⇧ ⌘ 5 and it brings the screen capture/recording menu.
You can perform all the operations available from the menu here.
Of course once we start the recording then we can see the record button in the menu bar.
Once the recording is completed you can save it as a movie file.
This unified interface now offers a lot of convenient options for capturing visual content in macOS.