Using @tryghost/admin-api
.
Set up
- Replace
http://localhost:2368
with your blog URL - Obtain API key by creating a new integration at http://localhost:2368/ghost/#/settings/integrations
Usage
$ gulp deploy
[17:47:17] Using gulpfile ~/Git/serpapi-theme/gulpfile.js
[17:47:17] Starting 'deploy'...
[17:47:17] Starting 'css'...
[17:47:19] Finished 'css' after 2.14 s
[17:47:19] Starting 'js'...
[17:47:19] Finished 'js' after 169 ms
[17:47:19] Starting 'zipper'...
[17:47:20] Finished 'zipper' after 335 ms
[17:47:20] Starting 'uploader'...
[17:47:21] Finished 'uploader' after 960 ms
[17:47:21] Finished 'deploy' after 3.61 s