Lists files in one S3 bucket This command queries Amazon’s S3 service for the list of files in a bucket, specified using the --bucket flag. The login and password for S3 must be set using the --access-key and --secret-key flags, unless defaults have been set in the Virtualmin configuration. By default output is in a human-readable table format, but you can switch to a more parsable output format with the --multiline flag. Or to just get a list of filenames, use the --name-only flag.
Lists files in one S3 bucket#
This command queries Amazon’s S3 service for the list of files in a bucket, specified using the --bucket flag. The login and password for S3 must be set using the --access-key and --secret-key flags, unless defaults have been set in the Virtualmin configuration.
By default output is in a human-readable table format, but you can switch to a more parsable output format with the --multiline flag. Or to just get a list of filenames, use the --name-only flag.
Command line help#
virtualmin list-s3-files [--multiline | --name-only]
[--access-key key]
[--secret-key key]
--bucket name
Source: https://www.virtualmin.com/docs/development/api-programs/list-s3-files/
