Crates.io | c-at-e-file-server-cli |
lib.rs | c-at-e-file-server-cli |
version | 0.0.2-main |
source | src |
created_at | 2022-11-29 11:23:22.915469 |
updated_at | 2022-11-29 11:23:22.915469 |
description | Uploads files to Fastly for serving directly from within Compute@Edge applications. Upload any type of file: images, text, video etc and serve directly from Fastly. It is ideal for serving files built from a static site generator such as 11ty. |
homepage | |
repository | https://github.com/jakeChampion/c-at-e-file-server |
max_upload_size | |
id | 725306 |
size | 74,105 |
Fastly File Server uploads files to Fastly for serving directly from within Compute@Edge applications.
Upload any type of file: images, text, video etc and serve directly from Fastly.
It is ideal for serving files built from a static site generator such as 11ty.
Install pre-compiled binaries via npm
npm install c-at-e-file-server
Compile and install via cargo
git clone https://github.com/JakeChampion/c-at-e-file-server
cd c-at-e-file-server/cli
cargo install --path .
Upload files to a Fastly Object Store, creating the Object Store if it does not exist.
Example: c-at-e-file-server upload --name website-static-files -- ./folder/of/files
c-at-e-file-server upload
Upload files
Usage: c-at-e-file-server upload [OPTIONS] --name <NAME> -- <PATH>
Arguments:
<PATH>
Options:
--name <NAME>
--token <TOKEN>
-h, --help Print help information
Connect a Fastly Object Store to a Fastly Service.
Example: c-at-e-file-server link --name website-static-files --link-name files --service-id xxyyzz
Usage: c-at-e-file-server link [OPTIONS] --name <NAME> --link-name <LINK_NAME> --service-id <SERVICE_ID>
Options:
--name <NAME>
--token <TOKEN>
--link-name <LINK_NAME>
--service-id <SERVICE_ID>
-h, --help Print help information
Update fastly.toml
to contain a local Object Store containing the specified files.
Example: c-at-e-file-server local --name files --toml fastly.toml -- ./folder/of/files
Usage: c-at-e-file-server local --toml <TOML> --name <NAME> -- <PATH>
Arguments:
<PATH>
Options:
--toml <TOML>
--name <NAME>
-h, --help Print help information