duck

Overview

../../_images/cyberduck1.png

duck is a command-line interface tool used for file transfers. duck provides a command-line interface (CLI) to connect via FTP, SFTP, or webDAV and can also connect to cloud storage.

duck

This article describes how to use duck to connect to your DreamObjects buckets.

How to install duck

duck is ready to use on DreamHost hosting machines so no installation is necessary to use it.

If you’d like to use duck on your Mac, Windows, or Linux machine, follow the instructions on the duck installation page.

Downloading the Connection Profile

Again, this step is not needed if you’re using duck from a DreamHost hosting machine.

Similar to Cyberduck, the duck CLI tool uses a connection profile as a pre-configured settings file to connect to DreamObjects.

  1. Download the DreamObjects Connection Profile if you’re going to run duck on your computer.

  2. Once you’ve downloaded the DreamObjects Connection Profile, move it into the proper directory:

    Linux and Windows-

    ~/.duck/profiles
    

    Mac-

    ~/Library/Application Support/Cyberduck/Profiles
    

This enables you to natively connect to your buckets using Duck.

Connecting to your DreamObjects bucket

Please refer to duck’s CLI usage page.

Alternatively, type the following when using duck for usage information:

[user@localhost]$ duck --help

Helpful commands

provides the switches and syntax to perform duck commands

[user@localhost]$ duck --help

lists objects in your bucket

[user@localhost]$ duck --list dreamhost://mybucketname/ -i (your access key) -p \
(your secret key)

lists objects in a bucket folder

[user@localhost]$ duck --list dreamhost://mybucketname/mysubfolder -i (your access key) \
-p (your secret key)

uploads file to the bucket, mybucket/

[user@localhost]$ duck --username myuser --upload dreamhost://mybucket/ \
my.file.to.upload

When prompted, enter your Access key then your Secret key.

opens a file to edit

[user@localhost]$ duck --edit dreamhost://mybucketname/yourfile -i (your access key) \
-p (your secret key)

Be sure to set the permission to the bucket or file to public or you will get a forbidden error.

 

Did this article answer your questions?

Article last updated .