Add endpoint command to shell

fixex #461