CLI
inferless volumes
Manage Inferless volumes
Commands:
create
: Create a new volume.cp
: Add a file or directory to a volume.ls
: List files and directories within a volume.rm
: Specify the Inferless path to the file.list
: List all existing volumes.
Usage:
Create a new volume
Options:
-n, --name TEXT
: Assign a name to the new volume.
Examples:
You will be asked for the prompt
Prompt : ‘Region’
List all the volumes
Options:
-r, --region TEXT
: specify the region where you want to create the runtime.
Examples:
Copy files to a volume
Options:
-s, --source TEXT
: Specify the source path (either a local directory/file path or an Inferless path)-d, --destination TEXT
: Specify the destination path (either a local directory/file path or an Inferless path)-r, --recursive
: Recursively copy the contents of a directory to the destination.--help
: Show this message and exit.
Examples:
To copy from local to remote volume
To copy from remote to local volume
List files and directories within a volume
Options:
PATH
: Specify the infer path to the directory [required]
Options:
-d, --directory
: List only directories.-f, --files
: List only files.-r, --recursive
: Recursively list contents of directories.--help
: Show this message and exit.
Examples:
Remove a file or directory from a volume
Options:
-p, --path TEXT
: Infer Path to the file/dir your want to delete
Examples: