hoziron-cli init
Create the CLI's local config directory. This is deliberately minimal — it
does not set up a provider, an API key, or a data directory. Provider
configuration lives on the server side; connecting the CLI to a server is a
separate step (hoziron-cli onboard).
Synopsis
hoziron-cli init [--quick]
Flags
| Flag | Description |
|---|---|
--quick | Accepted by the parser but currently has no effect — init is already fully non-interactive and behaves identically with or without this flag. |
What It Actually Does
- Creates
$HOZIRON_HOME(default~/.hoziron/) if it doesn't exist. - If
config.tomldoesn't already exist, writes a two-line placeholder:# Hoziron CLI Configuration # Run `hoziron-cli onboard` to connect to an API server. - Prints what it did and a pointer to
hoziron-cli onboard.
That's it. init does not:
- Prompt for a provider or API key (there is no interactive flow here at all)
- Write
.env - Create a
data/subdirectory - Populate
[default_model]or[providers.*]sections inconfig.toml
If you want the guided, interactive flow, run hoziron-cli onboard instead —
that's the command that prompts for a server URL, saves it as a context,
and optionally configures a CLI-to-daemon API key. See
utilities.md#onboard.
Examples
First run
$ hoziron-cli init
✓ Created /root/.hoziron
✓ Config at /root/.hoziron/config.toml
Next: run `hoziron-cli onboard` to connect to your API server.
Already initialized (idempotent)
$ hoziron-cli init
Configuration already exists at /root/.hoziron/config.toml
With custom config path
$ hoziron-cli --config /opt/hoziron/config.toml init
✓ Created /opt/hoziron
✓ Config at /opt/hoziron/config.toml
With HOZIRON_HOME
$ export HOZIRON_HOME=/opt/hoziron
$ hoziron-cli init
✓ Created /opt/hoziron
✓ Config at /opt/hoziron/config.toml
Notes
- Running
initwhen$HOZIRON_HOMEalready exists is safe — it never overwrites an existingconfig.toml. - Provider/model configuration (
[default_model],[providers.*]) is server-side config, edited on the machine runninghoziron-server— see config.md and ../../getting-started/README.md for the server side. - Use
hoziron-cli reset --confirmto clear CLI-side config (contexts,.env) — see utilities.md#reset.
See Also
- utilities.md#onboard — The actual interactive CLI-to-server connection wizard
- context.md — Adding/switching server connections
- start-stop.md — Starting the server (a separate process)
- config.md — Editing configuration after init