Socket
Socket
Sign inDemoInstall

ghost-upload-theme

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-upload-theme

Easily upload a theme to https://ghost.org


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Ghost upload theme

Using TryGhost/Ghost and customizing some themes for your website?

If you'd like to automate the upload of the new or updated theme as part of a CI task for example, this package is what you're looking for.

How to use the CLI

yarn global add ghost-upload-theme

ghost-upload-theme
    --environment-path ./path/to/your/env/.env
    --theme-path ./path/to/your/theme.zip --activate-theme
    --routes-path ./path/to/your/routes.yaml
    --content-path ./path/to/your/exported/content*.json
    --init # use this if the ghost install is completely fresh, no users created
    --allow-preconfigured-setup # if setup already completed, allow the setup to fail (false by default)

Environment

Environment variables will be read from actual env vars, .env, or a dotenv file passed in as --environment-path ./path/to/your/env/.env

Configurable environment variables are:

Vare.g.Description
GHOST_URLhttp://localhost:3001The url of the ghost instance that you're targeting (could be production or localhost)
GHOST_ADMIN_EMAILj.bloggs@example.comEmail of the admin user
GHOST_ADMIN_PASSWORDhunter123456789Their password - if you're running --init, note this has to be >10 chars
GHOST_API_FETCH_TIMEOUT_MS10000Max time the api calls will wait for ghost to respond. Note in CI systems this can be quite a long time - 60000 is suggested

Dev

Watch mode and display dev outputs:

yarn run start
DEBUG=* node dist/ghost-upload-theme.umd.js --theme-path /your/theme.zip

FAQs

Package last updated on 30 Oct 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc