Port cms command to core

Add "assertion" above here.