@foo-software/s3-directory-sync-cli
v2.1.1
Published
A CLI to sync a local directory with an AWS S3 bucket.
Downloads
161
Maintainers
Readme
@foo-software/s3-directory-sync-cli
A CLI to sync a local directory with an AWS S3 bucket. Example usage could involve an automated deployment of a serverless web app. This command essentially uploads a folder to a bucket.
Install
For use within a project:
npm install @foo-software/s3-directory-sync-cli --save-dev
For global use:
npm install @foo-software/s3-directory-sync-cli -g
Usage
Command line:
s3-directory-sync \
--S3_DIRECTORY_SYNC_ACCESS_KEY_ID abcdef \
--S3_DIRECTORY_SYNC_BUCKET ghijkl \
--S3_DIRECTORY_SYNC_LOCAL_DIRECTORY build \
--S3_DIRECTORY_SYNC_SECRET_ACCESS_KEY mnopqr \
/
In a project
package.json
(assuming environment variables likeS3_DIRECTORY_SYNC_ACCESS_KEY_ID=abcdef
):
{
"scripts": {
"deploy": "s3-directory-sync"
}
}
Parameters
Parameters can either be passed in the command line as arguments or as environment variables.
Credits
This package was brought to you by Foo - a website quality monitoring tool. Automatically test and monitor website performance, SEO and accessibility with Lighthouse. Analyze historical records of Lighthouse tests with automated monitoring. Report with confidence about SEO and performance improvements to stay on top of changes when they happen!