Skip to content

CLI `open`

FormBehavior
hike openStart in the configured local browser root and auto-open a preferred document if possible.
hike open README.mdOpen a local file directly.
hike open docs/Root the local browser at a directory and auto-open from there.
hike open https://example.com/file.mdOpen a remote Markdown URL directly.
hike open --command "gh tobiashochguertel/hike"Run an in-app command at startup.
OptionPurpose
--command, -cRun an in-app command instead of opening a direct target.
--navigation, --no-navigationForce the sidebar visible or hidden at startup.
--theme, -tOverride the configured theme for this launch.
--binding-setOverride the active named keybinding set for this launch.
--root PATHOverride the initial local browser root.
--ignore, --no-ignoreEnable or disable .gitignore / .ignore filtering.
--hidden, --no-hiddenShow or hide dotfiles in the local browser.
--exclude TEXTAdd one or more exclude globs.

When Hike starts from a directory, it uses the same startup planner for:

  • no explicit target
  • direct directory targets
  • file targets that should also anchor the local browser
  • config-driven startup priorities

By default Hike prefers INDEX.md, then README.md, then the first visible Markdown file in local-browser order.

Terminal window
hike open
hike open .
hike open README.md
hike open docs/
hike open --root ~/notes/docs
hike open --binding-set mnemonic README.md
hike open --command "gh tobiashochguertel/hike"