Hot CLI
The hot command-line interface is your primary tool for developing, testing, and deploying Hot applications.
Quick Reference
| Command | Description |
|---|---|
hot dev | Start all services in development mode |
hot run <file> | Execute a single .hot file |
hot eval '<code>' | Evaluate Hot code directly |
hot test | Run tests |
hot check | Analyze code for errors |
hot deploy | Deploy to Hot Cloud |
Services
hot dev
Start all services for local development:
hot dev
This starts:
- API at
http://localhost:4681— API for function calls and events - App at
http://localhost:4680— Web dashboard for monitoring - Worker — Processes background jobs and event handlers
- Task worker — Processes
::hot::taskand::hot::boxtasks - Scheduler — Runs scheduled functions
Common options:
hot dev --open # Open dashboard in browser
hot dev --api.port 8080 # Custom API port
hot dev --app.port 3000 # Custom App port
hot dev --worker.threads 16 # More worker threads
hot dev -d # Daemon mode (background)
Set hot.dev.open true in your hot.hot to always open the browser on start.
hot dev, hot api, hot app, hot worker, hot task-worker and
hot scheduler also take -d, --daemon, --queue.type (memory, sqlite,
redis), --redis.uri and --serialization.type. The last sets how queue
messages are serialized: json, or zstdjson (compressed, the default when
hot.serialization.type is unset).
hot dev, hot api and hot app take --api.host, --api.port,
--app.host and --app.port. Each sets the hot.api.* or hot.app.* key of
the same name.
hot api
Run just the API server:
hot api
hot api --api.port 8080 --api.host 0.0.0.0
hot app
Run just the web application (dashboard):
hot app
hot app --app.port 3000
hot app --queue.type redis --redis.uri redis://localhost:6379
hot worker
Run just the background worker:
hot worker
hot worker --worker.threads 16
hot task-worker
Run just the task worker (processes ::hot::task and ::hot::box tasks):
hot task-worker
Local ::hot::box tasks need Docker. If Docker does not answer when hot task-worker (or hot dev) starts, as when Docker is not installed, or Docker Desktop is stopped or still starting, the task worker still runs code tasks and logs Hot Box is unavailable on this task worker: ... at startup. Box tasks wait in the queue and run once Docker answers. The worker tries Docker every 15 seconds, and logs the message again as a warning, at most once an attempt, when a box task came back and had to wait; a box task that has waited a while can take up to 2 minutes more to start after Docker answers. If Docker stops after the task worker reached it, box tasks fail until Docker is back. See What a Worker Admits.
hot scheduler
Run just the job scheduler:
hot scheduler
With PostgreSQL, only one scheduler runs at a time. It holds a session advisory lock and confirms it every two seconds. If its database session ends (a failover, a terminated backend, a network partition) or a check takes longer than a second, it stops and exits non-zero, and its supervisor restarts it. A second scheduler started while one is running exits immediately, so replace a scheduler by stopping the old one first. Connect the scheduler to PostgreSQL directly or through a session-mode pooler; it refuses to start through a transaction- or statement-mode pooler that loses its lock.
Scheduler options, which hot dev also takes:
| Option | Description | Default |
|---|---|---|
--scheduler.backfill <BOOL> | On restart, fire the scheduled events missed while the scheduler was down | false |
--scheduler.sync-interval-seconds <SECONDS> | How often to sync schedules from the database | 30 |
--scheduler.retry-interval-seconds <SECONDS> | How often to poll for due retries | 1 |
--scheduler.at-interval-seconds <SECONDS> | How often to poll for due one-shot (@at) schedules | 1 |
Each sets the hot.scheduler.* key of the same name.
Running Code
hot run
Execute a single .hot file:
hot run script.hot
hot run path/to/file.hot
hot run script.hot --value.format json # Output as JSON
hot eval
Evaluate Hot code directly from the command line:
hot eval 'add(1, 2)'
hot eval '::my-app::hi/hello()'
hot eval 'send("user:created", {id: 123})'
hot eval '[1, 2, 3] |> map(mul(%, 2))'
Output format:
hot eval '::my-app::users/get-user(1)' --value.format json
With no command, hot evaluates the Hot code piped to it on stdin, in the
selected project. On a terminal it prints the help instead.
echo 'add(1, 2)' | hot
hot repl
Start an interactive REPL session:
hot repl
hot repl --value.format json # Print results as JSON
The REPL evaluates one line at a time. The prompt shows the current
namespace, which an ns declaration changes. Ctrl-C clears the line and
Ctrl-D exits.
Testing & Development
hot test
Run tests:
hot test # Run all tests
hot test signup # Run tests whose name contains "signup"
hot test ::app::user-test # Run the tests of one namespace
The pattern matches part of a test's full name, such as
::app::user-test/should-sign-up.
Tests are functions with meta ["test"] (or the equivalent meta {test: true}):
should-add-numbers meta ["test"]
fn () {
assert-eq(add(1, 1), 2)
}
hot test warns about a test that makes no assertions. A common cause is a
call written with a space before (, as in assert (x), which binds a
variable named assert instead of calling it.
Options:
| Option | Description |
|---|---|
--test.capture <BOOL> | Capture what tests print (default: true). Also hot.test.capture, or hot.project.<name>.test.capture |
--integration | Start the services the package's integration.hot lists, run the tests against them, then stop them |
hot test --integration looks for integration.hot beside the project's
source directory, as in hot/pkg/<name>/integration.hot for sources in
hot/pkg/<name>/src. That file is configuration laid over hot.hot.
Its hot.test.integration.services names the services to start: api,
app, worker, task-worker and scheduler. They run in the test process
on an in-memory queue. Docker must be running when task-worker is listed or
hot.box.enabled is true, its default.
Fixing the clock
Each test starts on the real clock. A test can fix it:
::hot::test/set-now(time)fixes the clock at an RFC 3339 string, anInstantor aZonedDateTime.::hot::test/advance(duration)moves it by aDurationof weeks, days or smaller units. A zero duration is an error.::hot::test/clear-now()returns it to the real time.
test-clock-demo
meta ["test"]
fn () {
::hot::test/set-now("2026-10-14T09:00:00Z")
assert-eq("2026-10-14T09:00:00Z", Str(::hot::time/now()))
::hot::test/advance(::hot::time/hours(5))
assert-eq("2026-10-14T14:00:00Z", Str(::hot::time/now()))
}
::hot::time/now, now-zoned, epoch-seconds and the other "now" functions
read the fixed time, in the test, in its parallel branches and pmap
workers, and in the handlers it delivers events to. After each test the runner
returns the clock to the real time. Outside hot test the ::hot::test clock
functions return an error and "now" is the real time, so no other run reads a
fixed clock.
Events and schedules
In a test, send keeps the event instead of publishing it, and no handler
runs on its own. The test delivers events itself:
::hot::test/deliver(event)runs theon-eventhandlers ofevent, a map withtypeanddata, inside the test. Then it delivers the events they send, until none is left.deliver()delivers what was sent so far. It returns one{type, fn, result}for each handler run.- A delivered
hot:schedule:newarms a schedule in the test, with relative times counted from the test's clock when the event was sent;hot:schedule:canceldisarms it.::hot::test/schedules()lists what is armed. ::hot::test/run-due()calls each schedule due by the test's clock, soonest first, with itsargs. Each call runs with the clock at its due time, as the scheduler would have run it, and its events are delivered. Afterwards the clock is back where the test left it.
A handler or scheduled call that fails counts as a failed assertion; one that
calls cancel() doesn't, and the others still run. As in a worker, exit(0)
returns and exit(code) fails the test or handler; neither ends hot test.
Handlers run as plain calls: retries and run records don't apply.
::store ::hot::store
steps ::store/Map(name: "docs.testing.steps")
// Opening a step arms its deadline
on-step-opened
meta {on-event: "step:opened"}
fn (event: Map) {
::store/put(steps, event.data.id, {status: "open"})
send("hot:schedule:new", {
fn: "::hot::test::docs::testing/check-due",
args: [event.data.id],
schedule: "in 2 days"
})
}
// At the deadline, a step still open is late
check-due fn (id: Str) {
step ::store/get(steps, id)
if(eq(step.status, "open"), ::store/put(steps, id, {status: "late", at: Str(::hot::time/now())}), null)
}
test-a-step-goes-late
meta ["test"]
fn () {
::hot::test/set-now("2026-10-14T09:00:00Z")
::hot::test/deliver({type: "step:opened", data: {id: "s-1"}})
assert-eq("open", ::store/get(steps, "s-1").status)
::hot::test/advance(::hot::time/days(3))
::hot::test/run-due()
// check-due ran at the deadline, with the clock at its due time
assert-eq({status: "late", at: "2026-10-16T09:00:00Z"}, ::store/get(steps, "s-1"))
}
hot check
Analyze code for errors without executing:
hot check # Check all project sources (pretty output)
hot check path/to/file.hot # Check a specific file or directory
hot check --check.format simple # One line per diagnostic (compact)
hot check --check.format json # Pretty-printed LSP-shaped diagnostics
hot check --check.format json-min # Minified JSON, ideal for CI / editor tooling
The json and json-min formats emit an array of LSP Diagnostic objects
(range, severity, code, source, message, optional file). Diagnostic
messages embed the same ariadne snippets shown in pretty mode when source is
available. The simple format prints one line per diagnostic:
file:line:column: severity [code] message. Pretty output uses color only on
a terminal, and never when NO_COLOR is set.
hot check also runs the build's secret-shape scan over the project's
sources, dependencies and resources, with the same
hot.build.allow-secret-shape allowlist as hot build. A match is reported
next to the other diagnostics, with code secret-shape.
--allow-secret-shape skips the scan.
--check.raw (or hot.check.raw true) leaves out the "No issues found" line
of the pretty and simple formats, so a clean check prints nothing.
Exit codes:
| Code | Meaning |
|---|---|
0 | No errors (warnings alone pass) |
1 | The check reported errors, or warnings with --check.deny-warnings |
2 | The check could not run: an unknown format, a path that doesn't exist, src paths with no .hot files, or a configuration error (printed on stderr) |
JSON mode is safe to drive from CI:
hot check --check.format json-min > diagnostics.json || cat diagnostics.json
Warnings, such as a deprecated API or a binding that shadows a function, don't
fail the check by default. Pass --check.deny-warnings (or set
hot.check.deny-warnings true) to exit non-zero on warnings too:
hot check --check.deny-warnings
In a package directory (a pkg.hot and no hot.hot), pass the package's
source directory: hot check src.
hot watch
Watch for changes and continuously re-analyze. Supports the same --check.format
flag as hot check, including json / json-min for editor / CI integration:
hot watch # Pretty output, re-run on save
hot watch --check.format json-min # Stream JSON diagnostics on every change
hot watch --watch.debounce 500 # Wait 500 ms after a change before checking
--watch.debounce takes milliseconds. The default is hot.watch.debounce,
200, and the least is 50. hot watch also takes --check.raw,
--check.deny-warnings and --allow-secret-shape.
hot watch runs until you stop it. Each run prints its report; a run that
can't start prints the reason on stderr and watching continues.
hot fmt
Format Hot source files:
hot fmt # Format the project's .hot files
hot fmt path/to/file.hot src # Format specific files and directories
hot fmt --check # Check without writing (CI mode)
With no paths, hot fmt formats the .hot files under the current directory
and the project's source paths. It honors .gitignore and .hotignore, and
skips the skill snapshots in .agents/skills/, .claude/skills/ and the old
.skills/ (pass a path inside one of them to format them anyway). It does not load hot.hot, so it also works when the
project configuration has an error.
hot fmt only changes whitespace: it puts a declaration's name, meta and
value on separate lines, expands long or multi-key meta blocks and one-line
type { … } records to one entry per line, normalizes blank lines between
declarations, trims trailing whitespace, and ends the file with one newline.
It never edits inside string literals or comments, and it keeps the file's
line endings (LF or CRLF).
Before writing, it checks that the result parses to the same program as the original and that every string literal is unchanged. A file that does not parse, or whose formatting would change the program, is reported with a line and column and left untouched.
hot fmt --check writes nothing: it lists the files that need formatting and
exits with status 1 if there are any. In both modes, a file that cannot be
read, parsed, formatted safely or written is an error and the exit status is
1, so hot fmt --check is a reliable CI gate.
Build & Deploy
hot build
Create a build bundle from your project:
hot build
hot build --build.dir ./dist
hot builds
List available builds.
Note: This command connects to Hot Cloud by default. To list builds from your local database, pass
--local. It reads the database inhot.db.uridirectly, so no server needs to be running.
hot builds # List builds on Hot Cloud
hot builds --local # List builds from the local database
hot builds --limit 50 --offset 50 # The second page of 50
--limit is the number of builds to show (default: 20) and --offset the
number to skip (default: 0).
hot compile
Compile project source and create/update the live build:
hot compile # The default project
hot compile my-project # Another project hot.hot defines (same as -p my-project)
hot deploy
Deploy a build to make it live.
Note: This command connects to Hot Cloud by default. To deploy locally, pass
--local. It writes to the database inhot.db.uridirectly, so no server needs to be running.
hot deploy # Build and deploy to Hot Cloud
hot deploy -p beta # Build and deploy project beta to Hot Cloud's beta project
hot deploy <build-id> # Deploy a specific build to Hot Cloud
hot deploy --local # Deploy through the local database (local dev or self-hosted)
hot build, hot compile and hot deploy stop with an error when -p names
a project hot.hot doesn't define.
A hot deploy that builds from source runs the same secret-shape scan as
hot build. --allow-secret-shape skips it.
Required context variables
A deploy checks the required context variables your code can reach against the ones set for the project and its environment. An unset one is a warning by default, and the deploy goes ahead. To block the deploy instead:
hot deploy --local --strict
Or set it in hot.hot, so a pipeline doesn't need the flag:
hot.deploy.ctx.strict true
--strict and hot.deploy.ctx.strict apply to hot deploy --local. A deploy
through the API is checked by the API server, which blocks only when
HOT_DEPLOY_STRICT_CTX is set to true in its environment.
To see the list before you deploy:
hot context required --local
It prints each required key with SET or UNSET, the namespace that requires
it, and whether a deploy would succeed, warn or block.
hot cache
Manage bytecode and package caches:
hot cache clear # Clear all caches
hot cache status # Show cache info
Project Management
hot init
Initialize Hot in a directory:
hot init # Use current directory
hot init my-app # Create my-app/ if needed, init there
hot init path/to/app # Create nested path if needed, init there
The project name is taken from the directory name, made into a Hot
identifier: lowercase letters, digits and -, starting with a letter (My App
becomes my-app, 2024-app becomes app-2024-app). Pass --name to choose
it: --name takes lowercase letters, digits and -, starting with a letter.
Creates these alongside your existing files:
hot.hot— Project configuration (project root)hot/src/<project>/hi.hot— Starter file with tutorial.hot/— Local data: cache, database, logs.gitignoreentries for.hot/,hot/ctx.hot,hot/dev.key(the key that encrypts local context values) and.env
It also writes .env.example, a sample .env with an empty HOT_API_KEY,
and an empty hot/test/<project>/ directory. Where hot.hot already exists,
hot init leaves it and the hot/ directories alone.
In a project, the first command that needs the local SQLite database (hot run, hot eval, hot repl, hot compile, hot build, hot key create, or a hot deploy that builds from source) prepares it:
- A missing database is created, as
hot initwould. - An outdated database is migrated, with a one-line notice.
- An empty database gets the local identity: user
local@hot.dev, organizationlocal, and environmentdevelopment.
Plain hot test runs without the project database, so it prepares nothing. It prepares the database only when you pass --db.uri. hot test --integration migrates the database its configuration names.
A profile other than the local identity must already exist in the database. See Profiles. Hot never migrates a PostgreSQL database implicitly; use hot db migrate.
hot project
Manage projects:
Note: This command connects to Hot Cloud by default. To change a project in your local database, pass
--local. It writes to the database inhot.db.uridirectly, so no server needs to be running.
hot project activate my-app # Activate a project on Hot Cloud
hot project deactivate my-app
hot project activate my-app --local # Activate it in the local database
To list projects, use hot projects.
hot projects
List the projects in the current environment.
Note: This command connects to Hot Cloud by default. To list projects from your local database, pass
--local. It reads the database inhot.db.uridirectly, so no server needs to be running.
hot projects # List projects on Hot Cloud
hot projects --local # List projects from the local database
hot projects --limit 50 --offset 50 # The second page of 50
--limit is the number of projects to show (default: 20) and --offset the
number to skip (default: 0).
hot deps
Manage dependencies:
hot deps list # List all dependencies
hot deps show # Show detailed dependency info
hot deps update # Resolve dependencies again (fetches branch dependencies)
hot deps migrate is left from the move off the old pkg.paths setting.
Projects use deps now, so it changes nothing.
hot deps add and hot deps remove are not implemented yet; they exit with
an error. Add or remove dependencies in hot.hot:
hot.project.my-app.deps {
"hot.dev/openai": {"local": "./packages/openai"}
}
hot context
Manage encrypted context variables (secrets).
Note: Managing Hot Cloud context variables from the CLI is not implemented yet; use the dashboard. Pass
--localto manage them in the database inhot.db.uridirectly (no server needs to be running).
hot context list --local # List all variables
hot context get OPENAI_API_KEY --local # Get a variable
hot context set OPENAI_API_KEY '"sk-xxx"' --local # Set a variable
hot context set OPENAI_API_KEY '"sk-xxx"' -d "OpenAI key" --local # Set it with a description
hot context delete OPENAI_API_KEY --local # Delete a variable
hot context required --local # List the variables your code requires
A value is a Hot expression, so a string needs its own quotes inside the
shell's: '"sk-xxx"'. -d, --description stores a description that
hot context list shows beside the key. hot ctx is an alias for
hot context. For hot context required, see
Required context variables.
hot conf
Show current configuration or generate configuration templates:
hot conf # Show resolved configuration
hot conf generate # Generate minimal config template
hot conf generate all # Generate full config with all options
hot conf generate api # Generate API server config
hot conf generate app # Generate App server config
hot conf generate worker # Generate Worker config
hot conf generate task-worker # Generate Task worker config
hot conf generate scheduler # Generate Scheduler config
hot conf generate -o hot.hot # Write template to file
-o, --output names the file to write. Without it, the template goes to
stdout.
hot conf shows the configuration a command would run with, so it takes the
options of the service commands and of hot test: -d, --daemon,
--api.host, --api.port, --app.host, --app.port, --queue.type,
--redis.uri, --serialization.type, --worker.threads, --test.capture
and --integration.
Available templates:
- (default) — Minimal configuration for local development (~25 lines)
- all — Full configuration with all available options (~470 lines)
- api — API server configuration (for self-hosting)
- app — App server configuration (for self-hosting)
- worker — Worker configuration (for self-hosting)
- task-worker — Task worker configuration (for self-hosting)
- scheduler — Scheduler configuration (for self-hosting)
The service templates no longer set hot.daemon: only hot dev, hot api,
hot app, hot worker, hot task-worker and hot scheduler run in the
background, and only with -d.
hot db
Manage the database in hot.db.uri:
hot db status # Show the connection and pending migrations
hot db migrate # Apply pending migrations
hot db migrate --status # Print the migration level as one JSON line; changes nothing
hot db provision-store-indexes # Create PostgreSQL vector indexes for stores
hot db port-v1-to-v2 # Port a Hot 1.x SQLite database to Hot 2
hot db redeploy # Redeploy the deployments another major version built
hot db move-storage --role file --to s3 --bucket acme-hot # Move files or builds to another storage backend
On PostgreSQL, hot db migrate, including --status, and
hot db provision-store-indexes connect with the schema owner in
--db.migration-uri (or HOT_DB_MIGRATION_URI), which must name the same database
as --db.uri. Services keep using the restricted runtime login in --db.uri:
hot db migrate \
--db.uri "postgres://hot_runtime:<password>@db.example.com/hot" \
--db.migration-uri "postgres://hot_owner:<password>@db.example.com/hot"
hot db status is for people. hot db migrate --status is for tools: it exits
non-zero when it can't read the migration ledger, and earlier releases don't have
it. See Troubleshooting Migrations.
After an upgrade to a new major version, hot db redeploy builds every
deployment from the earlier version again, checks it, and deploys the ones that
pass. --dry-run changes nothing, --notify emails the admins of each account
whose project fails, and --org <slug> limits the run to one organization.
hot db move-storage moves builds, or files and internal blobs, to another
storage backend while Hot is stopped, and --skip-file <FILE> leaves behind the
objects a file lists; see
Switching Backends.
See Self-Hosted PostgreSQL for the setup, and
Migrations and Upgrades for port-v1-to-v2 and
redeploy.
hot key
Create a full-access API key in the configured database:
hot key create # Description defaults to "cli"
hot key create --description "ci"
KEY=$(hot key create --description "ci")
The key belongs to the selected profile's environment. hot key create
prints the key once to stdout and everything else to stderr, so you can
capture it in a script. It writes to the database directly, which suits local
development, CI against a local hot dev, and self-hosted installations. On
Hot Cloud, create keys in the app instead. See
Authentication.
hot admin
Create the first administrator of a self-hosted installation, or reset a password:
hot admin bootstrap --email admin@example.com --name "Admin" \
--password-file /run/secrets/admin-password
hot admin reset-password --email user@example.com \
--password-file /run/secrets/new-password
| Command | Description |
|---|---|
hot admin bootstrap | Let an email address sign in with a password, creating the user if needed. Running it again changes nothing, even with another password. --name is the display name of a new user |
hot admin reset-password | Replace the password of a user who signs in with a password |
Both need --email and --password-file. The file holds the password, and
one trailing newline is ignored. Both write directly to the database in
hot.db.uri, so run migrations first. See
First administrator and
Reset a password.
Tooling
hot lsp
Start the Language Server Protocol server (used by editors):
hot lsp
The server speaks over stdin and stdout. --lsp.transport (or
hot.lsp.transport) names the transport, and stdio is the only one.
hot completions
Generate shell completions:
hot completions bash > ~/.bash_completions/hot
hot completions zsh > ~/.zfunc/_hot
hot completions fish > ~/.config/fish/completions/hot.fish
hot completions zsh --out-dir ~/.zfunc # Write the file into a directory
The shells are bash, zsh, fish, powershell and elvish. Without
--out-dir, the script goes to stdout. With it, hot writes the file into
that directory, which must exist, under the name the shell expects.
hot ai
Add AI coding support to help AI assistants understand Hot. This uses the open AGENTS.md and SKILL.md standards, which are supported by Cursor, Claude Code, GitHub Copilot, Windsurf, and many other AI coding tools.
hot ai add # Add AGENTS.md + bundled skills to project
hot ai add --global # Install skills to ~/.agents/skills/ and ~/.claude/skills/ (all projects)
hot ai add installs the skill snapshots bundled with your Hot release, so it
works offline and does not require Node or GitHub access. Available skills can
vary by Hot version; use hot ai list to inspect the installed release. To
install the latest public skills from the skills.sh ecosystem instead, use:
npx skills add hot-dev/hot-skills
Files created:
AGENTS.md— AI agent instructions (passive context).agents/skills/hot-language/— Detailed Hot language skill with references.agents/skills/hot-ai-agents/— Hot AI agent and SDK integration guidance.claude/skills/— The same skills for Claude Code, which reads only this folder
Most coding agents (Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode) read
.agents/skills/. A skill folder another tool manages, or a skills folder that
is a symlink, is left alone.
Other commands:
hot ai list # Show installed files and whether they are current
hot ai update # Update installed files to this Hot version
hot ai update --global # Update only the skills in your home folder
Hot 3.0.12 and earlier installed skills in .skills/, which agents don't
read. hot ai add and hot ai update move skills Hot installed there to the
new folders, and leave a copy you changed in place with a note.
Info
hot version
Display version information:
hot version
hot --version
hot -V
hot update
Update Hot to the latest version:
hot update
When the latest version is a new major version, hot update asks before
installing it. Without a terminal to ask on, it installs nothing and prints the
hot update --version command to run.
Install a specific release:
hot update --version 1.4.0
If your installed hot is too old to support --version, use the hosted installer script:
curl -fsSL https://get.hot.dev/install.sh | sh -s -- --version 1.4.0
Use --force to reinstall the current or requested version:
hot update --force
hot update --version 1.4.0 --force
This downloads and installs the requested version of Hot. If you're already on the selected version, it will let you know unless --force is set.
hot update updates the install it runs from, the way it was installed:
- A user install from the installer script (
~/.localby default) is replaced in place, without sudo. - A macOS or Debian package install runs the new package with sudo.
- A Homebrew install runs
brew upgrade hot. - On Windows, a user install (
%LOCALAPPDATA%\Programs\Hot Dev) runs the per-user installer without administrator rights; a Program Files install runs the machine installer as an administrator.
After updating, hot update runs the new hot ai update --global, so Hot
skills you installed with hot ai add --global match the new release. Run
hot ai update in each project to refresh its AGENTS.md and skills; hot dev
says when they are from another release. On Windows, and when hot update runs
under sudo, run hot ai update --global yourself.
To move from a package install to a user install, run the installer script with --user (on Windows, set HOT_INSTALL_SCOPE=user), then remove the package install.
hot uninstall
Remove the install this hot runs from, the way it was installed:
hot uninstall
It lists what it will remove and asks first. Your projects are left alone.
hot uninstall --dry-run # Show what would be removed
hot uninstall --yes # Don't ask, for scripts
See Uninstalling Hot for what each install does, and how to remove Hot by hand.
hot help
Display help information:
hot help
hot help dev
hot help deploy
Global Options
These options work with most commands:
| Option | Description |
|---|---|
-c, --conf <FILE> | Configuration file(s) |
--ctx <FILE> | Context file(s) for variables |
-p, --project <NAME> | Project name to use |
--profile <NAME> | User, organization, and environment profile to use (see Profiles) |
-s, --src.path <DIR> | Source directory |
-t, --test.path <DIR> | Test directory |
-r, --resource.path <DIR> | Resource directory bundled with builds |
--no-gitignore | Don't apply .gitignore when collecting files |
--engine.threads <N> | Engine threads (default: 4) |
--jit.mode <MODE> | JIT compilation: enabled, disabled (default: enabled on supported platforms) |
--jit.threshold <N> | Calls before a function is JIT-compiled |
--jit.hof.fusion <BOOL> | JIT higher-order-function pipeline fusion (default: true) |
--jit.share <BOOL> | Share JIT-compiled code between the runs of one build (default: true) |
--db.uri <URI> | Database connection URI |
--db.migration-uri <URI> | Schema-owner URI for migrations on PostgreSQL (see Self-Hosted PostgreSQL) |
--log.level <LEVEL> | Log level: off, trace, debug, error, warn, info |
--log.target <TARGET> | Log output: stdout, file, none |
--log.dir <DIR> | Directory for log files |
--log.rotation <ROTATION> | Log rotation: hourly, daily, none (default: daily) |
--log.retention <COUNT> | Number of log files to keep, 0 = keep all (default: 7) |
--log.format <FORMAT> | Log format: full, simple, json (an unknown value warns and falls back) |
--deploy.auto <BOOL> | Auto-deploy on CLI commands (default: true) |
--emitter.type <TYPE> | Emitter: none, console, db (default: db in project, none otherwise) |
--with-tests <BOOL> | Include test files in compile/check/watch (default: true for check and compile, false for watch) |
--show-conf is an option of each command, not a global one. It prints the
configuration that command uses, then exits:
hot worker --show-conf
hot watch --show-conf
hot fmt, hot cache, hot conf, hot completions, hot ai, hot update
and hot uninstall don't take it. hot conf prints the whole resolved
configuration.
Environment Variables
The CLI reads configuration from environment variables prefixed with HOT_:
export HOT_LOG_LEVEL="debug"
export HOT_API_PORT="8080"
# PostgreSQL: a restricted runtime login, plus the schema owner for migrations
export HOT_DB_URI="postgres://hot_runtime:<password>@db.example.com/hot"
export HOT_DB_MIGRATION_URI="postgres://hot_owner:<password>@db.example.com/hot"
Give HOT_DB_MIGRATION_URI only to migration jobs, not to long-running
services.
See Configuration for more details.