perske
v0.0.5
Published
perske CLI
Downloads
3
Readme
Perske CLI
Perske CLI streamlines the deployment process for JavaScript applications, including React, Angular, Svelte, and more. It simplifies the deployment of static sites on AWS, handling everything from file uploads to domain configuration.
Installation
Install Perske CLI globally using npm:
npm install -g perske
Prerequisites
Before using Perske CLI, ensure the following requirements are met:
AWS IAM User
Create an AWS IAM user with these permissions for full functionality:
AmazonS3FullAccess
CloudFrontFullAccess
AmazonRoute53FullAccess
AWSCertificateManagerFullAccess
These permissions enable the CLI to perform essential tasks on AWS, such as S3 bucket operations and domain configuration.
AWS Credentials
Obtain your AWS Access Key ID and Secret Access Key, then set them in an .env
file at your project root:
AWS_ACCESS_KEY_ID='YourAccessKeyId'
AWS_SECRET_KEY='YourSecretAccessKey'
REGION='YourAWSRegion'
Replace YourAccessKeyId
, YourSecretAccessKey
, and YourAWSRegion
with your actual AWS credentials and preferred region.
Usage
Perske CLI provides two primary commands:
start
Initializes your deployment setup. It gathers necessary information about your application and AWS S3 bucket and performs a build and upload of your application. It can also assist with domain configuration.
perske start
deploy
Ideal for CI/CD pipelines, this command deploys your application using pre-specified parameters, streamlining updates to your AWS S3 bucket.
perske deploy --bucketName 'your-bucket-name' --buildFolder 'your-build-folder' --cloudFrontId 'your-cloud-front-id'
Replace your-bucket-name
, your-build-folder
and your-cloud-front-id
with your specific details.
Note: The cloudFrontId
flag can be left out if you don't have a cloud front distribution for your s3 bucket.
Contributing
Contributions are welcome! To contribute:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push to the branch.
- Submit a pull request.
License
Perske CLI is MIT licensed.