File uploads

How to upload and download files from pico services

Table of Contents

All of our services require users to send us files in order to manage content. Read the How it Works for an under-the-hood, technical summary.

# How do I upload files?

Unless otherwise specified, all our services support the following ways to upload files.

# rsync

1rsync {service}:/

For pgs:

1rsync -rv public/ {service}:/site/

# What rsync options are supported?

Because in our golang SSH server we re-implement rsync, many options are currently not supported. For example, --delete and --dry-run are not supported. At this time, the only options we supported are the following:

  • -r
  • -v

# scp

There are two versions of scp, depending on your openssh version. Anything < v9.0 used "legacy scp." Anything >= v9.0 uses sftp.

1scp {service}:/

for pgs:

1scp -R public/ {service}:/site/

# sftp

1sftp {service}
3sftp> ls
6sftp> rm
8sftp> put
1echo 'put' | sftp {service}

# How do I update files?

Just send us the files you want to update. With you can upload single files to projects, but we also support "deploying" static sites with promotion and rollback.

# How do I delete files?

We have a couple ways to delete files depending on your use-case.

# sftp

The easiest way to delete a file is via sftp.

1sftp {service}
2sftp> rm

# How do I download files?

Using the same tools described here, just reverse the order of src and dest!

1rsync .
How it works