From 5a1fb7cce732a5eaffa4d5683cfabcd2d0d6dd7d Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 1 Feb 2022 17:39:35 +0100 Subject: Improve integration part of the doc --- doc/book/connect/cli.md | 119 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 115 insertions(+), 4 deletions(-) (limited to 'doc/book/connect/cli.md') diff --git a/doc/book/connect/cli.md b/doc/book/connect/cli.md index a62594a7..61f4feba 100644 --- a/doc/book/connect/cli.md +++ b/doc/book/connect/cli.md @@ -1,12 +1,22 @@ +++ -title = "CLI tools" +title = "Browsing tools" weight = 20 +++ -CLI tools allow you to query the S3 API without too many abstractions. +Browsing tools allow you to query the S3 API without too many abstractions. These tools are particularly suitable for debug, backups, website deployments or any scripted task that need to handle data. -## Minio client (recommended) +| Name | Status | Note | +|------|--------|------| +| [Minio client](#minio-client-recommended) | ✅ | Recommended | +| [AWS CLI](#aws-cli) | ✅ | Recommended | +| [rclone](#rclone) | ✅ | | +| [s3cmd](#s3cmd) | ✅ | | +| [(Cyber)duck](#cyberduck--duck) | ✅ | | +| [WinSCP (libs3)](#winscp) | ✅ | No instructions yet | + + +## Minio client Use the following command to set an "alias", i.e. define a new S3 server to be used by the Minio client: @@ -169,6 +179,107 @@ s3cmd get s3://my-bucket/hello.txt hello.txt ## Cyberduck & duck -TODO +Both Cyberduck (the GUI) and duck (the CLI) have a concept of "Connection Profiles" that contain some presets for a specific provider. +We wrote the following connection profile for Garage: + +```xml + + + + + Protocol + s3 + Vendor + garage + Scheme + https + Description + GarageS3 + Default Hostname + 127.0.0.1 + Default Port + 4443 + Hostname Configurable + + Port Configurable + + Username Configurable + + Username Placeholder + Access Key ID (GK...) + Password Placeholder + Secret Key + Properties + + s3service.disable-dns-buckets=true + + Region + garage + Regions + + garage + + + +``` + +*Note: If your garage instance is configured with vhost access style, you can remove `s3service.disable-dns-buckets=true`.* + +### Instructions for the GUI + +Copy the connection profile, and save it anywhere as `garage.cyberduckprofile`. +Then find this file with your file explorer and double click on it: Cyberduck will open a connection wizard for this profile. +Simply follow the wizard and you should be done! + +### Instuctions for the CLI + +To configure duck (Cyberduck's CLI tool), start by creating its folder hierarchy: + +``` +mkdir -p ~/.duck/profiles/ +``` + +Then, save the connection profile for Garage in `~/.duck/profiles/garage.cyberduckprofile`. +To set your credentials in `~/.duck/credentials`, use the following commands to generate the appropriate string: + +```bash +export AWS_ACCESS_KEY_ID="GK..." +export AWS_SECRET_ACCESS_KEY="..." +export HOST="s3.garage.localhost" +export PORT="4443" +export PROTOCOL="https" + +cat > ~/.duck/credentials <