Mandate
The easy way to deploy websites to S3
Install / Use
/learn @ForbesLindesay/MandateREADME
Mandate
Upload a directory to an S3 bucket
Command Line
Installation
npm install mandate -g
Usage
mandate <source-dir> -b <bucket-name> -k <key> -s <secret> -r <region>
Configuration
To save you typing in the command line options every time, stop accepts toml configuration files in the location .mandate.toml. An example configuration file might look like:
.mandate.toml
[aws]
bucket="example.com"
key="<AWS-KEY>"
secret="<AWS-SECRET>"
region="<AWS-REGION>"
[options]
filter=["!/node_modules", "!/.git"]
Alternatively, you can use environment variables and configure it using:
- S3_BUCKET
- S3_KEY
- S3_SECRET
- S3_REGION
API
mandate(__dirname, {
bucket: '<bucket>',
key: '<key>',
secret: '<secret>',
region: '<region>'
}, {filter: function (path) { return true }}, function (err) {
//done
})
License
MIT
Related Skills
tmux
342.0kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
blogwatcher
342.0kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
product
Cloud-agnostic Kubernetes infrastructure with Terraform & Helm for homelabs, edge, and production clusters.
Unla
2.1k🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
