Socket
Socket
Sign inDemoInstall

@cloudcannon/asset-uploader

Package Overview
Dependencies
175
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cloudcannon/asset-uploader

asset-uploader ==============


Version published
Maintainers
5
Created

Readme

Source

asset-uploader

oclif Version Downloads/week License

Usage

$ npm install -g @cloudcannon/asset-uploader
$ asset-uploader COMMAND
running command...
$ asset-uploader (-v|--version|version)
@cloudcannon/asset-uploader/0.2.0 darwin-x64 node-v10.19.0
$ asset-uploader --help [COMMAND]
USAGE
  $ asset-uploader COMMAND
...

API Keys

In order to use this package you need to provide valid API Keys.

Before you run the commands, please export the keys to environment variables using the following commands:

S3

$ export AWS_KEY='ABCDEFGHIJKLMNOPQRST'
$ export AWS_SECRET='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
$ export BUCKET='my-bucket-name'

Cloudinary

You can generate and managed the keys from the Cloudinary security settings page

$ export CLOUD_NAME='my-cloud-name'
$ export API_KEY='123456789012345'
$ export API_SECRET='abcdefghijklmnopqrstuvwxyza'

Commands

asset-uploader analyse

Provide an output with the list of assets found to be uploaded.

USAGE
  $ asset-uploader analyse

OPTIONS
  -o, --output=output  output changes
  -s, --source=source  source of the website to be parsed

See code: src/commands/analyse.js

asset-uploader complete

Scan source directory, upload and rewrite source files with the new assets location.

USAGE
  $ asset-uploader complete

OPTIONS
  -f, --folder=folder      folder where to uploade the files
  -o, --output=output      output changes
  -p, --prefix=prefix      prefix to be appended in front of instead of the returned URL from provider
  -s, --source=source      source of the website to be parsed
  -u, --uploader=uploader  uploader to be used. Choose between: "S3"|"cloudinary".

See code: src/commands/complete.js

asset-uploader help [COMMAND]

display help for asset-uploader

USAGE
  $ asset-uploader help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

asset-uploader upload

Scan source directory and upload assets to cloudinary.

USAGE
  $ asset-uploader upload

OPTIONS
  -f, --folder=folder      folder where to upload the files on cloudinary
  -o, --output=output      output changes
  -p, --prefix=prefix      prefix to be appended in front of instead of the returned URL from provider
  -s, --source=source      source of the website to be parsed
  -u, --uploader=uploader  uploader to be used. Choose between: "S3"|"cloudinary".

See code: src/commands/upload.js

Keywords

FAQs

Last updated on 14 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc