Skip to content

Holocron CLI

The holocron command-line interface lets you interact with Holocron tools and configuration through a variety of commands.

Check out @theholocron/holocron

๐Ÿ“ฆ Installation

Terminal window
npm install --global @theholocron/holocron

๐Ÿงช Usage

Terminal window
holocron <command> [subcommand] [options]

๐ŸŒ Global Options

These flags are available for all commands:

OptionAliasTypeDefaultDescriptionNotes
--debug-dbooleanfalse (or from config/env var)Enable debugging outputHidden by default
--sound-sbooleanfalse (or from config/env var)Enable sound effectsHidden by default
--verbosebooleanfalse (or from env var)Enable verbose loggingVisible
--help-hbooleanShow help information
--version-vbooleanShow CLI version

๐Ÿ“š Commands

The CLI dynamically loads commands from the internal commands directory. Currently, key commands include:

  • bootstrap: Initialize a new Holocron project template.
  • conf: Manage the Holocron configuration file (with subcommands: add, edit, view).
  • log: View logs with colorized output and filtering by log level.

โš™๏ธ Features

  • Environment variables prefixed with HOLOCRON_ automatically configure the CLI.
  • Command-line completion is enabled (--completion).
  • Strict command and option parsing with recommendations for mistyped commands.
  • Update notifier prompts when a new CLI version is available.

๐Ÿ’ก Examples

Terminal window
# Bootstrap a project with prompts
holocron bootstrap
# Add a configuration key
holocron conf add apiKey 123abc
# Edit the configuration file
holocron conf edit
# View specific configuration keys
holocron conf view apiKey domains
# Show last 20 lines of error logs
holocron log --level error --output 20
# Enable verbose logging for debugging
holocron log --verbose