vast-ai / vast-python

Vast.ai python and cli api client
MIT License
107 stars 40 forks source link

vastai: error: unrecognized arguments: --cloud_service #74

Open kenorb opened 6 months ago

kenorb commented 6 months ago

This is from help:

$ vastai cloud copy --help
...
Examples:
 vast cloud_copy --src folder --dst /workspace --cloud_service "Amazon S3" --instance_id 6003036 --cloud_service_selected 52 --transfer "Cloud To Instance"

However when I'm trying to use this syntax, I've got the error:

$ vastai cloud copy --src /mybucketname/ --dst 123123:/workspace --cloud_service "Amazon S3" 
usage: vastai [-h] [--url URL] [--retry RETRY] [--raw] [--explain] [--api-key API_KEY] command ...
vastai: error: unrecognized arguments: --cloud_service Amazon S3

I'm using vastai v0.1.8.

Are there any docs with more syntax examples which can work?


I've also tried:

vastai cloud copy --src s3://mybucketname/ --dst 123123:/workspace

and this one:

$ vastai cloud copy --src /mybucketname/ --dst 123123:/workspace --transfer "Cloud To Instance"
copying /mybucketname/ 123123:/workspace None None Cloud To Instance
failed with error 400: No Cloud Operation Selected. If you have one selected, but it is sending this error, refresh the page

but didn't work.

kenorb commented 5 months ago

Ok, the following syntax worked:

vastai cloud copy --src /mybucket/subdir --dst /root/subdir --transfer "Cloud To Instance" --connection 52 --instance 123123

Where --connection ID can be found with vastai show connections, and instance ID with vastai show instances.

I think docs should be updated.