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 hello-world.md {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 hello-world.md {service}:/

for pgs:

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

# sftp

1sftp {service}
2
3sftp> ls
4hello-world.md
5
6sftp> rm hello-world.md
7
8sftp> put hello-world.md
1echo 'put hello-world.md' | sftp {service}

# How do I update files?

Just send us the files you want to update. With pgs.sh 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 hello-world.md

# How do I download files?

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

1rsync prose.sh:/ .
<< PREV
How it works
NEXT >>
UI
Home
Sitemap
Getting started
How it works
File uploads
UI
Custom domains
Pages
Tuns
Prose
Pastes
RSS-To-Email
Docker Registry
pico+
Images
IRC
API Tokens
FAQ
Web Tunnels
Lab
Plain text lists
About us
Contact us
Abuse
Operations
Privacy policy