@truffle/preserve-to-buckets

Truffle `preserve` command support for Textile Buckets

Usage no npm install needed!

<script type="module">
  import trufflePreserveToBuckets from 'https://cdn.skypack.dev/@truffle/preserve-to-buckets';
</script>

README

@truffle/preserve-to-buckets

Configuration

To preserve your files to Textile Buckets, you will need to install Textile's hub tool, register and create authentication keys.

hub init
hub keys create
 - account
 - Require Signature Authentication (recommended): N

Then you need add these keys as well as a bucket name to an environment in your truffle-config.js

module.exports = {
    environments: {
        development: {
            buckets: {
                key: "MY_BUCKETS_KEY",
                secret: "MY_BUCKETS_SECRET",
                bucketName: "truffle-preserve-bucket",
            }
        }
        // ... other environments
    }
    // ... rest of your truffle-config
};