Skip to content

Command line

Hyperterse provides a simple command-line interface for running the server, development, and generating artifacts.

These flags are available for all commands:

FlagShortDescription
--file-fPath to configuration file (.terse or .hyperterse)
--help-hShow help for any command
--versionShow version information

Run the Hyperterse server in production mode.

Terminal window
hyperterse run -f config.terse
# Or simply
hyperterse -f config.terse

Flags:

FlagShortDefaultDescription
--port-p8080Server port (overrides config file and PORT env)
--log-level3Log level: 1=ERROR, 2=WARN, 3=INFO, 4=DEBUG
--verbose-vEnable verbose logging (sets log level to DEBUG)

Examples:

Terminal window
# Run on custom port
hyperterse run -f config.terse -p 3000
# Run with verbose logging
hyperterse run -f config.terse -v
# Run with specific log level
hyperterse run -f config.terse --log-level 4

Priority Order:

Server settings are applied in this order (highest to lowest):

  1. CLI flags (-p, --log-level, -v)
  2. Config file (server.port, server.log_level)
  3. Environment variables (PORT)
  4. Defaults (8080, INFO)

Run the server in development mode with hot reload.

Terminal window
hyperterse dev -f config.terse

The 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

Initialize a new Hyperterse configuration file.

Terminal window
hyperterse init

Creates a config.terse file in the current directory with a basic template.


Upgrade Hyperterse to the latest version.

Terminal window
hyperterse upgrade

Downloads and installs the latest version of Hyperterse.


Export a self-contained deployment bundle.

Terminal window
hyperterse export -f config.terse -o dist

Creates 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:

FlagShortDefaultDescription
--out-odistOutput directory
--clean-dirfalseClean output directory before exporting

Priority Order:

Export settings are applied in this order (highest to lowest):

  1. CLI flags (--out/-o, --clean-dir)
  2. Config file (export.out, export.clean_dir)
  3. Default (dist directory, clean_dir: false)

Output:

  • Self-contained bash script at {output_dir}/{config_name}
  • Script filename always matches the config name field
  • Embedded configuration and binary

Examples:

Terminal window
# Export to default directory (dist/)
hyperterse export -f config.terse
# Export to custom directory
hyperterse export -f config.terse -o build
# Clean directory before exporting
hyperterse export -f config.terse -o build --clean-dir
# With config export.out set to "build", CLI flag overrides it
hyperterse export -f config.terse -o release

Generate an llms.txt documentation file for AI/LLM consumption.

Terminal window
hyperterse generate llms -f config.terse
hyperterse generate llms -f config.terse -o docs/llms.txt --base-url https://api.example.com

Flags:

FlagShortDefaultDescription
--output-ollms.txtOutput file path
--base-urlhttp://localhost:8080Base URL for API endpoints

The generated file contains markdown documentation optimized for AI consumption, including:

  • Query descriptions
  • Input schemas
  • Example requests
  • Usage patterns

Generate an Agent Skills archive (.zip) for AI platforms.

Terminal window
hyperterse generate skills -f config.terse
hyperterse generate skills -f config.terse -o my-skill.zip --name my-data-api

Flags:

FlagShortDefaultDescription
--output-oskill.zipOutput file path
--name(from config filename)Skill name

The archive contains everything needed to register Hyperterse queries as AI agent skills.


VariableDescription
PORTDefault server port (lowest priority)
DATABASE_URLCommon pattern for connection strings

Use environment variables in configuration files:

adapters:
production_db:
connector: postgres
connection_string: '{{ env.DATABASE_URL }}'

CodeMeaning
0Success
1General error (invalid config, connection failure, etc.)

Control logging verbosity with --log-level or -v:

LevelNameDescription
1ERROROnly errors
2WARNWarnings and errors
3INFOGeneral information (default)
4DEBUGDetailed debugging information
Terminal window
# Set specific level
hyperterse run -f config.terse --log-level 4
# Shortcut for DEBUG level
hyperterse run -f config.terse -v