$ ros2 daemon stop
$ ros2 daemon start
$ ros2 daemon status

In case ros2 topic list and related commands don’t work for some reason