0.0.2 • Published 9 months ago

@hashnode/cli v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Hashnode CLI

Hashnode CLI is a command-line interface tool that allows you to manage your Hashnode blogs or docs directly from your terminal. It provides commands to verify your local changes and preview your documentation.

Note: The Hashnode CLI is currently under active development. Some features may be incomplete or subject to change. We appreciate your patience and feedback as we work to improve the tool.

Installation

To install the Hashnode CLI, run the following command:

npm install -g @hashnode/cli

Commands

docs

The docs command is the main entry point for Hashnode documentation-related commands.

hashnode docs [command]

verify

Check your local changes for any errors.

hashnode docs verify [options]

Options:

  • -c, --cwd <cwd>: The working directory. Defaults to the current directory.
  • -o, --write-file: Write the result to a file.

This command performs the following checks:

  • Configuration errors
  • Content errors
  • Duplicated slugs
  • Duplicated paths
  • Missing files