An SFDX plugin for working with static resources and resource bundles
For installing the plugin (make sure you have sfdx installed and updated first):
$ sfdx plugins:install sfdx-resource
For taking a directory in the root/bundles (in this example called resource name) and converting it to a static resource, use the bundle command:
$ sfdx resource:bundle <resourcename>
$ sfdx resource:bundle <resourcename> -n MyStaticResource -d A description of my static resource
$ sfdx resource:bundle --help
For extracting a static resource in a SFDX project, so that you can modify the contents, use the unbundle command:
$ sfdx resource:unbundle <resourcename>
$ sfdx resource:unbundle --help