How can I edit .cmdline files?

In Terminal run nano /path/to/file.cmdline.

In Finder, right-click on the file icon and open with TextEdit.app