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
npm install --global @theholocron/holocron
๐งช Usage
holocron <command> [subcommand] [options]
๐ Global Options
These flags are available for all commands:
Option | Alias | Type | Default | Description | Notes |
---|---|---|---|---|---|
--debug | -d | boolean | false (or from config/env var) | Enable debugging output | Hidden by default |
--sound | -s | boolean | false (or from config/env var) | Enable sound effects | Hidden by default |
--verbose | boolean | false (or from env var) | Enable verbose logging | Visible | |
--help | -h | boolean | Show help information | ||
--version | -v | boolean | Show 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
# Bootstrap a project with promptsholocron bootstrap
# Add a configuration keyholocron conf add apiKey 123abc
# Edit the configuration fileholocron conf edit
# View specific configuration keysholocron conf view apiKey domains
# Show last 20 lines of error logsholocron log --level error --output 20
# Enable verbose logging for debuggingholocron log --verbose