### Basic qdownload2 Usage Example Source: https://github.com/qiniu/qshell/blob/master/docs/qdownload2.md Demonstrates the basic invocation of qdownload2 with destination directory and bucket specified. This is a fundamental way to start downloading files. ```bash qshell qdownload2 --dest-dir=/home/jemy/temp --bucket=test ``` -------------------------------- ### Prefetch Example Source: https://github.com/qiniu/qshell/blob/master/docs/prefetch.md This example demonstrates how to prefetch the file 'qiniu.png' from the bucket 'if-pbl'. Ensure your Qshell is authenticated before running. ```bash qshell prefetch if-pbl qiniu.png ``` -------------------------------- ### Example: List All Files in 'if-pbl' Bucket Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket.md This example demonstrates how to list all files in the 'if-pbl' bucket and save the output to 'if-pbl.list.txt'. ```bash qshell listbucket if-pbl -o if-pbl.list.txt ``` -------------------------------- ### Example Sync Command Usage Source: https://github.com/qiniu/qshell/blob/master/docs/sync.md An example demonstrating how to use the sync command to fetch a large video file from a URL and save it to a Qiniu bucket with a specified key. ```bash $ qshell sync http://if-pbl.qiniudn.com/test_big_movie.mp4 if-pbl test.mp4 ``` -------------------------------- ### Example: List Files with Prefix in 'if-pbl' Bucket Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket.md This example shows how to list files in the 'if-pbl' bucket that have the prefix '2014/10/07/' and save them to 'if-pbl.prefix.list.txt'. ```bash qshell listbucket if-pbl --prefix '2014/10/07/' -o if-pbl.prefix.list.txt ``` -------------------------------- ### Get Help for Qshell Get Command Source: https://github.com/qiniu/qshell/blob/master/docs/get.md Use the -h flag for a simple description or --doc for detailed documentation of the get command. ```bash qshell get -h ``` ```bash qshell get --doc ``` -------------------------------- ### qdownload Example Configuration Source: https://github.com/qiniu/qshell/blob/master/docs/qdownload.md An example configuration for downloading MP4 files with the 'movies/' prefix from the 'qdisk' bucket to a local directory. It also specifies a download domain and disables hash checking. ```json { "dest_dir" : "/Users/jemy/Temp7/backup", "bucket" : "qdisk", "domain" : "if-pbl.qiniudn.com", "prefix" : "movies/", "suffixes" : ".mp4", "check_hash" : false } ``` -------------------------------- ### Generate Upload Token Example Source: https://github.com/qiniu/qshell/blob/master/docs/token.md Example of generating an upload token using a simple upload policy configuration file. ```bash qshell token upload upload.conf ``` -------------------------------- ### Example Keys File Content Source: https://github.com/qiniu/qshell/blob/master/docs/batchchlifecycle.md This is an example of the content for the keys file used with `batchchlifecycle`. Each line specifies a file key, and multiple keys can be processed in a single operation. ```text 2015/03/22/qiniu.png 2015/photo.jpg ``` -------------------------------- ### Generate QBox Token Example Source: https://github.com/qiniu/qshell/blob/master/docs/token.md Example of generating a QBox token for the stat interface after encoding the entry URI. ```bash qshell token qbox http://rs.qiniu.com/stat/dG9ueXB1YmxpYzp0ZXN0Lm1vdg== ``` -------------------------------- ### Example Input File Content Source: https://github.com/qiniu/qshell/blob/master/docs/batchsign.md An example of the content expected in the input file, with each line containing a public URL. ```plaintext http://if-pri.qiniudn.com/camera.jpg http://if-pri.qiniudn.com/camera.jpg?imageView2/0/w/100 ``` -------------------------------- ### Example: Unzip a File to a Specific Directory Source: https://github.com/qiniu/qshell/blob/master/docs/unzip.md This example demonstrates how to use the unzip command to extract a zip file named 'hellp.zip' into the '/home/Temp' directory. ```bash qshell unzip hellp.zip /home/Temp ``` -------------------------------- ### Get All Files in Bucket 'if-pbl' Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket2.md An example command to list all files within the 'if-pbl' bucket and save the output to 'if-pbl.list.txt'. ```bash qshell listbucket2 if-pbl -o if-pbl.list.txt ``` -------------------------------- ### Example Key-MimeType Mapping Source: https://github.com/qiniu/qshell/blob/master/docs/batchchgm.md An example of how to structure the input file for batchchgm. Note that the separator is a tab character, not a space. ```text data/2015/02/01/bg.png image/png data/2015/02/01/pig.jpg image/jpeg ``` -------------------------------- ### Get Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/sandbox_pause.md Display detailed help information for the `sandbox pause` command. ```bash qshell sandbox pause -h ``` ```bash qshell sandbox pause --doc ``` -------------------------------- ### Example Input File Content Source: https://github.com/qiniu/qshell/blob/master/docs/batchrename.md This example shows the content of an input file used for batch renaming, mapping original file paths to new paths within the bucket. ```text 2015/03/22/qiniu.png test/qiniu.png 2015/photo.jpg test/photo.jpg ``` -------------------------------- ### Batch Stat Example with Input File Source: https://github.com/qiniu/qshell/blob/master/docs/batchstat.md This example demonstrates how to query basic information for a list of files specified in 'listFile' within the '7qiniu' bucket. The '-y' flag bypasses the confirmation prompt. ```bash $ qshell batchstat 7qiniu --silence -y -i listFile ``` -------------------------------- ### Getting qdownload Help Source: https://github.com/qiniu/qshell/blob/master/docs/qdownload.md How to access help documentation for the qdownload command. Use '-h' for a simple description or '--doc' for detailed documentation. ```bash qshell qdownload -h ``` ```bash qshell qdownload --doc ``` -------------------------------- ### Download File with qshell get Source: https://context7.com/qiniu/qshell/llms.txt Use `get` to download a single file from a Qiniu bucket to a specified local path. Use `--doc` to view command help. ```bash qshell get my-bucket images/photo.jpg -o /tmp/photo.jpg ``` ```bash qshell get --doc ``` -------------------------------- ### Get Help Documentation for Listbucket Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket.md Displays simple help information for the listbucket command. ```bash qshell listbucket -h ``` -------------------------------- ### Get QShell Token Help Source: https://github.com/qiniu/qshell/blob/master/docs/token.md Use the `-h` flag for simple help or `--doc` for detailed documentation. ```bash qshell token -h ``` ```bash qshell token --doc ``` -------------------------------- ### Get Prefetch Help Source: https://github.com/qiniu/qshell/blob/master/docs/prefetch.md You can view help documentation for the prefetch command. Use '-h' for a simple description or '--doc' for detailed documentation. ```bash qshell prefetch -h ``` ```bash qshell prefetch --doc ``` -------------------------------- ### Get Sync Command Help Source: https://github.com/qiniu/qshell/blob/master/docs/sync.md How to access help documentation for the sync command directly from the command line. ```bash qshell sync -h ``` ```bash qshell sync --doc ``` -------------------------------- ### Basic Qupload2 Usage Example Source: https://github.com/qiniu/qshell/blob/master/docs/qupload2.md Demonstrates the basic usage of qupload2 by specifying the source directory and bucket. This is a command-line interface for uploading files. ```bash qshell qupload2 --src-dir=/home/jemy/temp --bucket=test ``` -------------------------------- ### Get Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/sandbox_template_delete.md View the help documentation for the sandbox template delete command. ```bash $ qshell sandbox template delete -h ``` ```bash $ qshell sandbox template delete --doc ``` -------------------------------- ### Example: Refreshing Multiple File URLs from a File Source: https://github.com/qiniu/qshell/blob/master/docs/cdnrefresh.md This example demonstrates how to refresh multiple file URLs listed in a text file named `torefresh.txt`. ```bash qshell cdnrefresh -i torefresh.txt ``` -------------------------------- ### Get Detailed Documentation for Listbucket Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket.md Opens the detailed documentation for the listbucket command in the console. ```bash qshell listbucket --doc ``` -------------------------------- ### Install and Configure Bash Completion for Qshell Source: https://context7.com/qiniu/qshell/llms.txt Installs bash-completion and configures qshell command completion for Bash. Make the configuration permanent by adding it to ~/.bashrc. ```bash yum install bash-completion -y source <(qshell completion bash) # Make permanent: echo 'source <(qshell completion bash)' >> ~/.bashrc ``` -------------------------------- ### Get Fetch Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/fetch.md Use the -h flag for a simple description or --doc for detailed documentation of the fetch command. ```bash qshell fetch -h ``` ```bash qshell fetch --doc ``` -------------------------------- ### SaveAs Example for Private Bucket Source: https://github.com/qiniu/qshell/blob/master/docs/saveas.md This example shows how to use the saveas command with a private bucket. The process is similar to public buckets, but the resulting URL will require further authorization using the privateurl command to be accessible. ```bash $ qshell saveas 'http://if-pri.qiniudn.com/qiniu.png?imageView2/0/format/jpg' 'if-pri' 'qiniu_1.jpg' ``` -------------------------------- ### Example Input File for Batch Expire Source: https://github.com/qiniu/qshell/blob/master/docs/batchexpire.md This is an example of an input file content. Each line contains a file path and the number of days until expiration, separated by a tab. ```text 2015/03/22/qiniu.png 3 2015/photo.jpg 3 ``` -------------------------------- ### Get batchfetch Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/batchfetch.md Use the `-h` flag for a simple help message or `--doc` for detailed documentation. ```bash qshell batchfetch -h ``` ```bash qshell batchfetch --doc ``` -------------------------------- ### Get fput Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/fput.md Command to display help documentation for the fput command. ```bash $ qshell fput -h ``` ```bash $ qshell fput --doc ``` -------------------------------- ### Get Batchsign Help Source: https://github.com/qiniu/qshell/blob/master/docs/batchsign.md Displays help documentation for the batchsign command. Use '-h' for a simple description or '--doc' for detailed documentation. ```bash qshell batchsign -h ``` ```bash qshell batchsign --doc ``` -------------------------------- ### Get Batch Move Help Source: https://github.com/qiniu/qshell/blob/master/docs/batchmove.md Displays the help documentation for the batchmove command, providing a summary of its usage and options. ```bash qshell batchmove -h ``` -------------------------------- ### Get cdnprefetch Help Source: https://github.com/qiniu/qshell/blob/master/docs/cdnprefetch.md Displays help documentation for the cdnprefetch command. Use '-h' for simple help or '--doc' for detailed documentation. ```bash qshell cdnprefetch -h ``` ```bash qshell cdnprefetch --doc ``` -------------------------------- ### Get Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket2.md Displays the help documentation for the listbucket2 command. Use `-h` for a simple description or `--doc` for detailed documentation. ```bash qshell listbucket2 -h ``` ```bash qshell listbucket2 --doc ``` -------------------------------- ### Running qdownload with Concurrent Downloads Source: https://github.com/qiniu/qshell/blob/master/docs/qdownload.md Command to execute the qdownload with a specified number of concurrent download threads. This example sets the concurrency to 10. ```bash qshell qdownload -c 10 qdisk_down.conf ``` -------------------------------- ### Get Share CP Help Source: https://github.com/qiniu/qshell/blob/master/docs/share-cp.md Use the -h flag to display simple help documentation for the share-cp command. ```bash qshell share-cp -h ``` -------------------------------- ### Get AWS Fetch Help Source: https://github.com/qiniu/qshell/blob/master/docs/awsfetch.md Use the -h flag for a brief overview of the awsfetch command options, or --doc for detailed documentation. ```bash qshell awsfetch -h ``` ```bash qshell awsfetch --doc ``` -------------------------------- ### Get qshell b64decode Help Source: https://github.com/qiniu/qshell/blob/master/docs/b64decode.md View the help documentation for the b64decode command to understand its usage and options. ```bash $ qshell b64decode -h ``` ```bash $ qshell b64decode --doc ``` -------------------------------- ### Example Output Format for Listbucket Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket.md This shows the expected tab-separated format of the file list output from the listbucket command. ```text Key Size Hash PutTime MimeType FileType EndUser ``` ```text hello.jpg 1710619 FlUqUK7zqbqm3NPwzq2q7TMZ-Ijs 14209629320769140 image/jpeg 1 ``` ```text hello.mp4 8495868 lns2dAHvO0qYseZFgDn3UqZlMOi- 14207312835630132 video/mp4 0 ``` ```text hhh 1492031 FjiRl_U0AeSsVCHXscCGObKyMy8f 14200176147531840 image/jpeg 1 ``` ```text jemygraw.jpg 1900176 FtmHAbztWfPEqPMv4t4vMNRYMETK 14208960018750329 application/octet-stream 1 QiniuAndroid ``` -------------------------------- ### Get Help for Func Command Source: https://github.com/qiniu/qshell/blob/master/docs/func.md Use the -h flag for a simple description or --doc for detailed documentation of the func command. ```bash qshell func -h ``` ```bash qshell func --doc ``` -------------------------------- ### Get Account Command Help Source: https://github.com/qiniu/qshell/blob/master/docs/account.md Access help documentation for the `account` command. Use `-h` for a simple description or `--doc` for detailed documentation. ```bash qshell account -h ``` ```bash qshell account --doc ``` -------------------------------- ### Substring Extraction using Func Command Source: https://github.com/qiniu/qshell/blob/master/docs/func.md This example demonstrates extracting a portion of a string using the substr function with start and end indices. The end index is inclusive. ```bash qshell func '{"name":"this is a test"}' '{{substr 0 6 .name}}' ``` -------------------------------- ### Get Help for Batch Delete Source: https://github.com/qiniu/qshell/blob/master/docs/batchdelete.md Displays the help documentation for the `batchdelete` command, providing information on its usage and options. ```bash qshell batchdelete -h ``` -------------------------------- ### Download a file to the current directory Source: https://github.com/qiniu/qshell/blob/master/docs/get.md This example shows how to download a file named 'test.txt' from the 'qiniutest' bucket to the current local directory. ```APIDOC ## GET qshell get ### Description Downloads a specified file from a storage bucket. ### Method GET (Implicit, as it's a download operation) ### Endpoint Not applicable (CLI command) ### Parameters #### Path Parameters - **Bucket** (string) - Required - The name of the storage bucket. - **Key** (string) - Required - The name of the file within the storage bucket. #### Options - **-o/--outfile** (string) - Optional - The local file path to save the downloaded file. If not specified, it saves to the current directory with the original file name. - **--domain** (string) - Optional - Specifies the download domain to use. If not provided, qshell uses a priority list of domains. - **--get-file-api** (boolean) - Optional - Enables the use of the getfile API if supported by the server. - **--public** (boolean) - Optional - Indicates if the bucket is public (deprecated). - **--check-size** (boolean) - Optional - Verifies the size of the downloaded file against the server's file size. - **--check-hash** (boolean) - Optional - Verifies the hash of the downloaded file against the server's file hash. - **--enable-slice** (boolean) - Optional - Enables slice download. - **--slice-size** (integer) - Optional - The size of each slice in bytes for slice download. Defaults to 4194304 (4MB). - **--slice-concurrent-count** (integer) - Optional - The concurrency level for slice download. Defaults to 10. - **--slice-file-size-threshold** (integer) - Optional - The file size threshold for enabling slice download. - **--remove-temp-while-error** (boolean) - Optional - Removes partially downloaded files upon encountering an error. Defaults to false. ### Request Example ``` $ qshell get qiniutest test.txt ``` ### Response #### Success Response - The file is downloaded to the specified local path or the current directory. ``` -------------------------------- ### qdownload Configuration File Example Source: https://github.com/qiniu/qshell/blob/master/docs/qdownload.md A sample JSON configuration file for qdownload. This file specifies download parameters like bucket, destination directory, prefixes, suffixes, and hash checking. ```json { "bucket" : "", "dest_dir" : "", "save_path_handler" : "", "prefix" : "image/", "suffixes" : ".png,.jpg", "key_file" : "", "check_hash" : false, "domain" : "down.example.com", "referer" : "http://www.example.com", "remove_temp_while_error": false, "log_file" : "download.log", "log_level" : "info", "log_rotate" : 10, "log_stdout" : false } ``` -------------------------------- ### Get prefop Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/prefop.md Use the -h flag for a simple description or --doc for detailed documentation of the prefop command. ```bash qshell prefop -h ``` ```bash qshell prefop --doc ``` -------------------------------- ### Get Share CP Detailed Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/share-cp.md Use the --doc flag to access the detailed documentation for the share-cp command. ```bash qshell share-cp --doc ``` -------------------------------- ### Get User Command Help Source: https://github.com/qiniu/qshell/blob/master/docs/user.md Displays help documentation for the user command. Use `-h` for simple help or `--doc` for detailed documentation. ```bash qshell user -h ``` ```bash qshell user --doc ``` -------------------------------- ### Get PFOP Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/pfop.md Access help documentation for the pfop command. Use '-h' for a simple description or '--doc' for detailed documentation. ```bash qshell pfop -h ``` ```bash qshell pfop --doc ``` -------------------------------- ### Get chlifecycle Help Source: https://github.com/qiniu/qshell/blob/master/docs/chlifecycle.md To understand the available options and usage for the chlifecycle command, you can access its help documentation directly from the command line. ```bash qshell chlifecycle -h ``` -------------------------------- ### Get qshell Version Help Source: https://github.com/qiniu/qshell/blob/master/docs/version.md To view the help documentation for the `version` command, use the `-h` flag for a simple description or `--doc` for detailed documentation. ```bash qshell verion -h ``` ```bash qshell verion --doc ``` -------------------------------- ### Upload Error Example Source: https://github.com/qiniu/qshell/blob/master/docs/qupload.md An example of an error message indicating that a file already exists and could not be uploaded without explicit overwrite instructions. ```text [E] Upload failed:./file/1K.tmp => [qshell-z0-01:1024K.tmp] error:upload source => form upload => file exists ``` -------------------------------- ### Get alilistbucket Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/alilistbucket.md To view the help documentation for the alilistbucket command, use the -h flag for a simple description or --doc for detailed documentation. ```bash qshell alilistbucket -h ``` ```bash qshell alilistbucket --doc ``` -------------------------------- ### Get Rename Command Help Source: https://github.com/qiniu/qshell/blob/master/docs/rename.md Use the `-h` flag to get a brief help message for the rename command, or `--doc` for detailed documentation. ```bash qshell rename -h ``` ```bash qshell rename --doc ``` -------------------------------- ### Configure All Hosts and HTTPS in Global Settings Source: https://github.com/qiniu/qshell/blob/master/README.md This example shows how to configure all host types and disable HTTPS by setting 'use_https' to false in the .qshell.json file. ```json { "use_https": false, "hosts": { "rs": "rs-test.qiniu.com", "io": "io-test.qiniu.com", "uc": "uc-test.qiniu.com", "api": "api-test.qiniu.com", "up": "up-test.qiniu.com", "rsf": "rsf-test.qiniu.com" } } ``` -------------------------------- ### Get Help for Qshell IP Command Source: https://github.com/qiniu/qshell/blob/master/docs/ip.md Use the -h flag for a simple description or --doc for detailed documentation of the qshell ip command. ```bash qshell ip -h ``` ```bash qshell ip --doc ``` -------------------------------- ### Display Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/domains.md View the help documentation for the domains command. Use '-h' for a simple description or '--doc' for detailed documentation. ```bash qshell domains -h ``` ```bash qshell domains --doc ``` -------------------------------- ### Display Help Documentation for Create Rule Source: https://github.com/qiniu/qshell/blob/master/docs/sandbox_injection_rule_create.md Displays the help documentation for the `sandbox injection-rule create` command, providing detailed information on its usage and parameters. ```bash qshell sandbox injection-rule create -h qshell sandbox injection-rule create --doc ``` -------------------------------- ### Get expire command help Source: https://github.com/qiniu/qshell/blob/master/docs/expire.md Use the -h flag to get a brief help message for the expire command. For detailed documentation, use the --doc flag. ```bash qshell expire -h ``` ```bash qshell expire --doc ``` -------------------------------- ### Create input file for abfetch Source: https://github.com/qiniu/qshell/blob/master/docs/abfetch.md Create a file named 'urls.txt' with one URL per line to specify the resources to be fetched. If a key is not specified, the path from the URL will be used as the key. ```bash http://test.com/test1.txt http://test.com/a/test2.txt http://test.com/a/b/test3.txt ``` -------------------------------- ### qdownload2 Help Command Source: https://github.com/qiniu/qshell/blob/master/docs/qdownload2.md Displays the help information for the qdownload2 command, listing all available flags and their descriptions. Use this to understand all configuration options. ```bash qshell qdownload2 -h ``` -------------------------------- ### Get Batch Change MimeType Help Source: https://github.com/qiniu/qshell/blob/master/docs/batchchgm.md Use the -h flag to get a simple help message for the batchchgm command. For detailed documentation, use the --doc flag. ```bash qshell batchchgm -h ``` -------------------------------- ### Build Binary with go build Source: https://github.com/qiniu/qshell/blob/master/CLAUDE.md Compile the Go project into a binary. Use this to verify that the compilation process is successful. ```bash go build ./main/ ``` -------------------------------- ### SaveAs Example for Public Bucket Source: https://github.com/qiniu/qshell/blob/master/docs/saveas.md This example demonstrates how to use the saveas command to process an image from a public bucket and save the result with a new name in the same bucket. The command automatically appends the saveas parameter and signs the resulting URL. ```bash $ qshell saveas 'http://if-pbl.qiniudn.com/qiniu.png?imageView2/0/format/jpg' 'if-pbl' 'qiniu_1.jpg' ``` -------------------------------- ### get Source: https://context7.com/qiniu/qshell/llms.txt Downloads a single file from a Qiniu bucket to the local filesystem. ```APIDOC ## get ### Description Downloads a single file from a Qiniu bucket to the local filesystem. ### Method `get` ### Parameters - `bucket` (string) - Required - The name of the bucket to download from. - `key` (string) - Required - The key of the file to download. - `-o` (string) - Optional - The local path to save the downloaded file. ``` -------------------------------- ### Fetch Resource with Specified Key Source: https://github.com/qiniu/qshell/blob/master/docs/fetch.md Example of fetching a resource from a URL and saving it to a Qiniu bucket with a specific key. The output shows the assigned key, hash, file size, and MIME type. ```bash $ qshell fetch https://www.baidu.com/img/bdlogo.png if-pbl -k bdlogo.png Key: bdlogo.png Hash: FrUHIqhkDDd77-AtiDcOwi94YIeM Fsize: 5331 (5.21 KB) Mime: image/png ``` -------------------------------- ### Get Help for Batch Rename Source: https://github.com/qiniu/qshell/blob/master/docs/batchrename.md You can view the help documentation for the batchrename command directly from your terminal. ```bash qshell batchrename -h ``` ```bash qshell batchrename --doc ``` -------------------------------- ### Check Qshell Version Source: https://github.com/qiniu/qshell/blob/master/README.md Use the '-v' flag to check the currently installed version of Qshell. ```bash qshell -v ``` -------------------------------- ### Get create-share Help Source: https://github.com/qiniu/qshell/blob/master/docs/create-share.md Use the -h flag to display simple help documentation for the create-share command. For detailed documentation, use the --doc flag. ```bash qshell create-share -h ``` ```bash qshell create-share --doc ``` -------------------------------- ### Get Qiniu Token Format Source: https://github.com/qiniu/qshell/blob/master/docs/token.md Command format for generating a Qiniu token, similar to QBox token. ```bash qshell token qiniu [--access-key --secret-key ] [--http-body ] [--content-type ] [--method ] ``` -------------------------------- ### Get Delete Command Help Source: https://github.com/qiniu/qshell/blob/master/docs/delete.md View the help documentation for the delete command to understand its usage and options. ```bash qshell delete -h ``` ```bash qshell delete --doc ``` -------------------------------- ### Get Bucket Information Source: https://github.com/qiniu/qshell/blob/master/docs/bucket.md Use this command to retrieve information about a specific bucket. Ensure your authentication is set up. ```bash qshell bucket ``` ```bash qshell bucket my-bucket ``` -------------------------------- ### Rename File Within the Same Bucket Source: https://github.com/qiniu/qshell/blob/master/docs/move.md Example of renaming a file `qiniu.jpg` to `2015/01/19/qiniu.jpg` within the `if-pbl` bucket. ```bash qshell move if-pbl qiniu.jpg if-pbl 2015/01/19/qiniu.jpg ``` -------------------------------- ### Generated Private Links Source: https://github.com/qiniu/qshell/blob/master/docs/batchsign.md Example output showing the generated private CDN links with expiration tokens. ```plaintext http://if-pri.qiniudn.com/camera.jpg?e=1473840685&token=TQt-iplt8zbK3LEHMjNYyhh6PzxkbelZFRMl10MM:TnNXdt1Y4_jw-Xy0MF8vy9gF9dM= http://if-pri.qiniudn.com/camera.jpg?imageView2/0/w/100&e=1473840685&token=TQt-iplt8zbK3LEHMjNYyhh6PzxkbelZFRMl10MM:gjnUiiKUIOw7VQvJjYxXQLSybSM= ``` -------------------------------- ### Get abfetch help documentation Source: https://github.com/qiniu/qshell/blob/master/docs/abfetch.md You can obtain help documentation for the abfetch command by running the command with the -h flag for a simple description or --doc for detailed documentation. ```bash qshell abfetch -h ``` ```bash qshell abfetch --doc ``` -------------------------------- ### Get SaveAs Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/saveas.md Use these commands to access help information for the saveas command directly from your terminal. ```bash qshell saveas -h ``` ```bash qshell saveas --doc ``` -------------------------------- ### Display Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/dircache.md Displays help documentation for the dircache command. Use '-h' for a simple description or '--doc' for detailed documentation. ```bash qshell dircache -h ``` ```bash qshell dircache --doc ``` -------------------------------- ### Get Help for URL Decode Command Source: https://github.com/qiniu/qshell/blob/master/docs/urldecode.md To view the help documentation for the `urldecode` command, use the -h flag. ```bash qshell urldecode -h ``` -------------------------------- ### Get rput Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/rput.md Use these commands to access help documentation for the rput command directly from your terminal. ```bash // Simple description $ qshell rput -h ``` ```bash // Detailed documentation (this document) $ qshell rput --doc ``` -------------------------------- ### Example File Listing Output Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket2.md This shows the typical tab-separated format of the output when listing files from a bucket. Fields include Key, FileSize, Hash, PutTime, MimeType, and FileType. ```text hello.jpg 1710619 FlUqUK7zqbqm3NPwzq2q7TMZ-Ijs 14209629320769140 image/jpeg 1 hello.mp4 8495868 lns2dAHvO0qYseZFgDn3UqZlMOi- 14207312835630132 video/mp4 0 hhh 1492031 FjiRl_U0AeSsVCHXscCGObKyMy8f 14200176147531840 image/jpeg 1 jemygraw.jpg 1900176 FtmHAbztWfPEqPMv4t4vMNRYMETK 14208960018750329 application/octet-stream 1 ``` -------------------------------- ### Display Help Documentation for List Command Source: https://github.com/qiniu/qshell/blob/master/docs/sandbox_injection_rule_list.md Retrieves and displays the detailed help documentation for the `sandbox injection-rule list` command. ```bash qshell sandbox injection-rule list -h ``` -------------------------------- ### Get rpcencode Help Source: https://github.com/qiniu/qshell/blob/master/docs/rpcencode.md Use the -h flag for a simple help message or --doc for detailed documentation. ```bash qshell rpcencode -h ``` ```bash qshell rpcencode --doc ``` -------------------------------- ### List All Buckets with Details Source: https://github.com/qiniu/qshell/blob/master/docs/buckets.md This command lists all buckets along with their region, file count, and size. It requires the `--detail` option to be specified. Authentication is necessary. ```bash qshell buckets --detail ``` -------------------------------- ### List All Files in a Bucket Source: https://github.com/qiniu/qshell/blob/master/docs/listbucket.md Use this command to get a list of all files in a specified bucket and save the output to a file. ```bash qshell listbucket -o ``` -------------------------------- ### Get Batch Copy Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/batchcopy.md Displays the help documentation for the batchcopy command. Use '-h' for a simple description or '--doc' for detailed information. ```bash qshell batchcopy -h ``` ```bash qshell batchcopy --doc ``` -------------------------------- ### Get Detailed Documentation for Batch Delete Source: https://github.com/qiniu/qshell/blob/master/docs/batchdelete.md Displays the detailed documentation for the `batchdelete` command, similar to the current page. ```bash qshell batchdelete --doc ``` -------------------------------- ### Display Help for Bucket Command Source: https://github.com/qiniu/qshell/blob/master/docs/bucket.md View simple help or detailed documentation for the bucket command by using the -h or --doc flags respectively. ```bash qshell bucket -h ``` ```bash qshell bucket --doc ``` -------------------------------- ### Get Batchchtype Help Documentation Source: https://github.com/qiniu/qshell/blob/master/docs/batchchtype.md Use these commands to access help information for the batchchtype command directly from your terminal. ```bash qshell batchchtype -h ``` ```bash qshell batchchtype --doc ``` -------------------------------- ### Fetch Resource Using Hash as Key Source: https://github.com/qiniu/qshell/blob/master/docs/fetch.md Example of fetching a resource and letting Qiniu automatically name the file in the bucket using the resource's hash value. The output confirms the key, hash, file size, and MIME type. ```bash $ qshell fetch https://www.baidu.com/img/bdlogo.png if-pbl Key: FrUHIqhkDDd77-AtiDcOwi94YIeM Hash: FrUHIqhkDDd77-AtiDcOwi94YIeM Fsize: 5331 (5.21 KB) Mime: image/png ```