[staff-cli #13] ensure_dir, plus swapped order of arguments to doc on cli