Basic Usage
Opening Files
Files to open. Supports advanced file location syntax (see below).
File Location Syntax
Fresh supports rich file location syntax for opening files at specific positions:Use single quotes to avoid shell expansion when using the
@"message" syntax.Global Options
Attach to a session. Use
-a alone for current directory, or -a NAME for a named session.Read content from stdin (alternative to using
- as filename).Disable plugin loading.
Path to configuration file (overrides default config locations).
Path to log file for editor diagnostics.
Enable event logging to the specified file.
Don’t restore previous workspace session.Alias:
--no-sessionDisable upgrade checking and anonymous telemetry.
Override the locale (e.g.,
en, ja, zh-CN).See Internationalization for supported locales.Launch in GUI mode with native window and GPU rendering.
Requires Fresh to be built with the
gui feature enabled.Commands
Commands are invoked using the--cmd flag:
Configuration Commands
config show
Print the effective configuration (merged from all config layers).
config paths
Show directories used by Fresh (config, data, cache, etc.).
Session Commands
Fresh supports persistent sessions that can be attached/detached.session list
List all active sessions.
session attach [NAME]
Attach to a session. Without NAME, attaches to the session for the current directory.
session new NAME
Start a new named session.
session kill [NAME]
Terminate a session. Without NAME, kills the current directory’s session. Use --all to kill all sessions.
session open-file NAME FILES [--wait]
Open files in a session without attaching. Use . for NAME to target the current directory’s session.
Block the CLI process until the user dismisses the popup (if
@"message" was given) or closes the buffer.This enables guided walkthroughs and sequential file review workflows.Initialization Command
init [TYPE]
Initialize a new plugin, theme, or language configuration. Interactive prompt if TYPE is omitted.
Advanced Workflows
Guided Walkthrough with —wait
The--wait flag enables sequential file review workflows:
How --wait works
How --wait works
When
--wait is used:- Fresh opens the file at the specified location
- If a
@"message"is provided, displays it in a popup - The CLI process blocks until:
- User presses Escape (if popup was shown)
- User closes the buffer (if no popup)
- Process exits, allowing the next command to run
- Code review workflows
- Tutorial/walkthrough scripts
- Sequential debugging sessions