Changing project directory in version 5

I’ve copied a project to a new location. This command used to work:

cryosparcm cli "update_project_directory('Pxxx', '/new/project/path')"

but is now giving me…

NameError: name 'update_project_directory' is not defined

I presume this is a version 4 vs 5 problem. What is the version 5 equivalent?

Thanks,
Matthew