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 {user}@{service}:/
# scp
1scp hello-world.md {user}@{service}:/
# sftp
1sftp {user}@{service}
2
3sftp> ls
4hello-world.md
5
6sftp> rm hello-world.md
7
8sftp> put hello-world.md
# 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.
# 0-byte file
Because scp
does not natively support deleting files, we didn't want to bake
that behavior into our SSH Apps.
However, if a user wants to delete a post they can delete the contents of the
file and then upload it to our server. If the file contains 0 bytes, we will
remove the post. For example, if you want to delete delete.md
you could:
1cp /dev/null delete.md
2scp ./delete.md {user}@prose.sh:/
# How do I download files?
Using the same tools describe here just reverse the
order of src
and dest
!
1rsync {user}@prose.sh:/ .