Skip to content

📟 A CLI tool to help you create and manage content for your cState status page. Run wth npx or install globally with npm.

Notifications You must be signed in to change notification settings

cstate/cstate-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Line Tool for cState Status Page

A CLI tool to help you create and manage content for your cState status page.

Installation

You can install cstate-cli globally using npm:

npm install -g cstate-cli

Or, you can use it directly with npx:

npx cstate-cli <command>

Usage

cstate

The main help command for cstate-cli.

cstate create

Creates a new incident or informational post in your cState content/issues directory.

Example:

cstate create

This will guide you through an interactive prompt to create a new post.

cstate draft

Creates a new post from a pre-defined template.

Example:

cstate draft

This will ask you to choose a template and then guide you through an interactive prompt.

Available Templates:

  • Incident Post
  • Maintenance
  • Experiment
  • Postmortem

cstate dev

Runs the Hugo development server with the cState theme.

Example:

cstate dev

This is useful for previewing the cState root repository exampleSite locally during development.

cstate serve

An alias for hugo serve. You can pass any Hugo server options to this command.

Example:

cstate serve --contentDir=exampleSite/content

cstate build

An alias for hugo build.

Example:

cstate build

Contributing

If you find a bug or have a feature request, please open an issue on the GitHub repository.

If you want to contribute code, please fork the repository and submit a pull request.

License

MIT

(C) Mantas Vilčinskas

About

📟 A CLI tool to help you create and manage content for your cState status page. Run wth npx or install globally with npm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published