Command line
Hyperterse provides a simple command-line interface for running the server, development, and generating artifacts.
Global flags
Section titled “Global flags”These flags are available for all commands:
| Flag | Short | Description |
|---|---|---|
--file | -f | Path to configuration file (.terse or .hyperterse) |
--help | -h | Show help for any command |
--version | Show version information |
Commands
Section titled “Commands”hyperterse run
Section titled “hyperterse run”Run the Hyperterse server in production mode.
hyperterse run -f config.terse# Or simplyhyperterse -f config.terseFlags:
| Flag | Short | Default | Description |
|---|---|---|---|
--port | -p | 8080 | Server port (overrides config file and PORT env) |
--log-level | 3 | Log level: 1=ERROR, 2=WARN, 3=INFO, 4=DEBUG | |
--verbose | -v | Enable verbose logging (sets log level to DEBUG) |
Examples:
# Run on custom porthyperterse run -f config.terse -p 3000
# Run with verbose logginghyperterse run -f config.terse -v
# Run with specific log levelhyperterse run -f config.terse --log-level 4Priority Order:
Server settings are applied in this order (highest to lowest):
- CLI flags (
-p,--log-level,-v) - Config file (
server.port,server.log_level) - Environment variables (
PORT) - Defaults (
8080,INFO)
hyperterse dev
Section titled “hyperterse dev”Run the server in development mode with hot reload.
hyperterse dev -f config.terseThe server watches your configuration file and automatically reloads when changes are detected. This is ideal for local development.
Flags:
Same as run command.
Features:
- Watches configuration file for changes
- 500ms debounce delay for rapid saves
- Graceful reload without downtime
- Validates configuration before applying changes
hyperterse init
Section titled “hyperterse init”Initialize a new Hyperterse configuration file.
hyperterse initCreates a config.terse file in the current directory with a basic template.
hyperterse upgrade
Section titled “hyperterse upgrade”Upgrade Hyperterse to the latest version.
hyperterse upgradeDownloads and installs the latest version of Hyperterse.
hyperterse export
Section titled “hyperterse export”Export a self-contained deployment bundle.
hyperterse export -f config.terse -o distCreates a self-contained bash script in the specified directory. The script filename is always derived from the config name field. This is the recommended first step for any deployment.
Flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--out | -o | dist | Output directory |
--clean-dir | false | Clean output directory before exporting |
Priority Order:
Export settings are applied in this order (highest to lowest):
- CLI flags (
--out/-o,--clean-dir) - Config file (
export.out,export.clean_dir) - Default (
distdirectory,clean_dir: false)
Output:
- Self-contained bash script at
{output_dir}/{config_name} - Script filename always matches the config
namefield - Embedded configuration and binary
Examples:
# Export to default directory (dist/)hyperterse export -f config.terse
# Export to custom directoryhyperterse export -f config.terse -o build
# Clean directory before exportinghyperterse export -f config.terse -o build --clean-dir
# With config export.out set to "build", CLI flag overrides ithyperterse export -f config.terse -o releasehyperterse generate llms
Section titled “hyperterse generate llms”Generate an llms.txt documentation file for AI/LLM consumption.
hyperterse generate llms -f config.tersehyperterse generate llms -f config.terse -o docs/llms.txt --base-url https://api.example.comFlags:
| Flag | Short | Default | Description |
|---|---|---|---|
--output | -o | llms.txt | Output file path |
--base-url | http://localhost:8080 | Base URL for API endpoints |
The generated file contains markdown documentation optimized for AI consumption, including:
- Query descriptions
- Input schemas
- Example requests
- Usage patterns
hyperterse generate skills
Section titled “hyperterse generate skills”Generate an Agent Skills archive (.zip) for AI platforms.
hyperterse generate skills -f config.tersehyperterse generate skills -f config.terse -o my-skill.zip --name my-data-apiFlags:
| Flag | Short | Default | Description |
|---|---|---|---|
--output | -o | skill.zip | Output file path |
--name | (from config filename) | Skill name |
The archive contains everything needed to register Hyperterse queries as AI agent skills.
Environment variables
Section titled “Environment variables”| Variable | Description |
|---|---|
PORT | Default server port (lowest priority) |
DATABASE_URL | Common pattern for connection strings |
Use environment variables in configuration files:
adapters: production_db: connector: postgres connection_string: '{{ env.DATABASE_URL }}'Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Success |
1 | General error (invalid config, connection failure, etc.) |
Log levels
Section titled “Log levels”Control logging verbosity with --log-level or -v:
| Level | Name | Description |
|---|---|---|
1 | ERROR | Only errors |
2 | WARN | Warnings and errors |
3 | INFO | General information (default) |
4 | DEBUG | Detailed debugging information |
# Set specific levelhyperterse run -f config.terse --log-level 4
# Shortcut for DEBUG levelhyperterse run -f config.terse -v