add cmd command to hf to automate similar tasks in the subdirectories