Duck

cyberduck_dho_logo_small.fw.png

duck is a command-line interface tool that you can use to transfer files. Duck provides a command-line interface (CLI) to connect via FTP, SFTP, or webDAV and can also connect to cloud storage.

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

How to install and set up 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

Refer to Duck’s CLI usage page.

Alternatively, enter the following when using Duck to display usage information:

[server]$ duck --help

Helpful commands

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

provides the switches and syntax to perform Duck commands:

[server]$ duck --help

lists objects in your bucket:

[server]$ duck --list dreamhost://mybucketname/ -i <your access key> \ -p <your secret key>

lists objects in a bucket folder:

[server]$ duck --list dreamhost://mybucketname/mysubfolder -i <your access key> \ -p <your secret key>

uploads file to the bucket, mybucket/:

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

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

opens a file to edit:

[server]$ duck --edit dreamhost://mybucketname/yourfile -i <your access key> \ -p <your secret key>

Did this article answer your questions?

Article last updated .