shell: adapt register prefix command to new shell api