The slimer CLI tool automates common tasks when working on Ghost and in the surrounding ecosystem.
Add me to your globals:
npm install --global @tryghost/slimer-cli
I aim to be easy to use, if you ever get stuck, try adding --help to a command.
- Run
slimerorslimer --helpfor full usage details - Try
slimer new --helpfor information on how to create new projects - Try
slimer fix --helpto see common maintenance tasks
This is a mono repository, managed with lerna.
git clonethis repo &cdinto it as usualyarn setupis mapped tolerna bootstrap- installs all external dependencies
- links all internal dependencies
To add a new package to the repo:
- install me!
- run
slimer new <package name>
yarn dev(oryarn slimer) are aliases forslimeryarn link:cliwill make your local dev version available globally as justslimer <command>yarn unlink:cliwill remove it again
Note: normally yarn link would work for this, but it's not working with the lerna repo for me.
yarn lintrun just eslintyarn testrun tests & then eslint
yarn shipis an alias forlerna publish- Publishes all packages which have changed
- Also updates any packages which depend on changed packages
Copyright (c) 2013-2025 Ghost Foundation - Released under the MIT license.