Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tryghost/ghost-cli
CLI Tool for installing & updating Ghost
https://github.com/tryghost/ghost-cli
blogging cli cms ghost ghost-cli hacktoberfest headless-cms jamstack javascript journalism nodejs publishing
Last synced: about 1 month ago
JSON representation
CLI Tool for installing & updating Ghost
- Host: GitHub
- URL: https://github.com/tryghost/ghost-cli
- Owner: TryGhost
- License: mit
- Created: 2016-08-10T15:56:04.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T19:42:37.000Z (7 months ago)
- Last Synced: 2024-04-14T12:07:37.555Z (7 months ago)
- Topics: blogging, cli, cms, ghost, ghost-cli, hacktoberfest, headless-cms, jamstack, javascript, journalism, nodejs, publishing
- Language: JavaScript
- Homepage: https://ghost.org
- Size: 5.67 MB
- Stars: 446
- Watchers: 35
- Forks: 219
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Ghost-CLI
[![CI Status](https://github.com/TryGhost/Ghost-CLI/workflows/Test/badge.svg?branch=master)](https://github.com/TryGhost/Ghost-CLI/actions)
[![Coverage Status](https://coveralls.io/repos/github/TryGhost/Ghost-CLI/badge.svg?branch=master)](https://coveralls.io/github/TryGhost/Ghost-CLI?branch=master)
[![npm version](https://img.shields.io/npm/v/ghost-cli.svg)](https://npmjs.com/package/ghost-cli/)## Basic Setup
- `npm install -g ghost-cli@latest`
- `ghost install` (for a production linux setup, including Nginx, SSL, and Systemd)
- `ghost install local` (for a local setup, useful for theme development/testing)#### NOTE: This CLI is not designed to work with any Ghost versions < 1.0.0
## Documentation
- [Complete Setup Guide](https://ghost.org/docs/install/ubuntu/)
- [Command Reference](https://ghost.org/docs/ghost-cli/)
- [Knowledgebase](https://ghost.org/docs/ghost-cli/#knowledgebase)
- [Forum](https://forum.ghost.org)## Project Goals
The objective of the Ghost CLI project is to make setting up and maintaining a Ghost site as straight forward as possible for people who do not want to use Ghost(Pro).
Ghost-CLI is aimed at people who are comfortable in a command line environment, and therefore some technical knowledge is assumed. The design goal of Ghost CLI was to make it possible to install or update Ghost in a single command.
In order to keep these goals obtainable & maintainable by Ghost's small team, we have a recommended system stack that Ghost-CLI works with, and minimal configuration options.
### Recommended stack
We officially recommend the stack [described here](https://ghost.org/docs/install/ubuntu/) for production installs.
The team behind Ghost CLI _only_ supports this stack. This restriction is very deliberate, as every additional option for configuration or divergent piece of code required to support an additional environment creates exponential complexity and maintenance overhead.
Our primary focus for the project is ensuring that everyone that uses the recommended system stack is able to **install**, **configure**, **start**, **stop**, **restart**, **update** & **list** their Ghost sites. This includes developing better testing to ensure we are able to prevent regressions, and stabilising the code to ensure that edge cases within the recommended stack are accounted for.
The secondary focus is on improving the CLI itself. We want to ensure that the UI, configuration options, flags, flows, prompts, messages and other behaviours are working for both manual and programmatic use. This also includes improving the documentation to make it easy to use the tool, discover advanced options & debug any common issues.
**Anything that falls outside of these two areas is not being actively worked on at present.**
## Triaging & prioritisation
- Issues which affect many users with our recommended stack are given first priority
- Issues which affect small numbers of users are prioritised based on the impact vs the difficulty - i.e. quick fixes will be prioritised, complex issues may be closed and labelled with `later` & `recommended-stack`.
- Issues around documented & understood environment or configuration issues will be closed and labelled with `known-issue`, users will be directed to the docs & forum.
- Issues that request modifications in order to support other stacks stack will be closed and labelled with `later` & `other-stack`.
- Issues proposing new features or enhancements will be labelled as such, and in most cases also closed with `later`.## Help & Support
We aren't able to provide support in GitHub, but we do keep track of common issues with the `known-issue` label and regularly update documentation & error messages to be clearer.
The documentation for Ghost-CLI can be found at https://ghost.org/docs/ghost-cli/. Community support can be found in our [forum](https://forum.ghost.org).
## Developer Setup (for contributing)
1. Fork this repo
2. `git clone https://github.com//Ghost-CLI path/to/your/workspace`
3. `cd path/to/your/workspace`
4. `yarn install`To run the CLI for testing:
- `yarn link`
- `ghost ` (can run anywhere on the system)#### Running tests
```sh
yarn test
```#### Publishing a new version
1. `yarn ship -- -r patch/minor/major`
2. `git push`
3. `npm publish`
4. Go to https://github.com/TryGhost/Ghost-CLI/releases/new and create a new release
5. Use `Generate release notes` and publish# Copyright & License
Copyright (c) 2013-2023 Ghost Foundation - Released under the [MIT license](LICENSE). Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our [trademark policy](https://ghost.org/trademark/) for info on acceptable usage.