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.select
: Select a volume for the current Inferless configuration file.
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:
-i, --id TEXT
: Specify the ID of the volume to list.-p, --path TEXT
: Define a specific directory path within the volume. Defaults to the root directory if not specified.-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:
Upate the inferless.yaml configuration file with the volume
Usage:
Options:
-p, --path TEXT
: Path to the Inferless configuration file (typically inferless.yaml)-i, --id TEXT
: The ID of the volume to select.
Examples: