A command block has an ID name of minecraft:command_block and is further defined by its block data and block entity. A command block also has a block state which is expected to replace the functionality of block data in 1.13.[upcoming] ID