Skip to main content

ideon preview [markdownPath]

What This Command Does

ideon preview [markdownPath] starts the local preview API and serves the React preview UI so you can inspect generated outputs and assets in a browser.

Usage

ideon preview [markdownPath] [--port <port>] [--no-open] [--watch]

Arguments and Options

Flag/ArgumentShorthandRequiredTypeDefaultAllowed ValuesDescription
[markdownPath]NoneNostring (path)Newest generated markdown in output directoryValid markdown file pathSpecific markdown output to preview.
--port <port>-pNointeger4173Valid TCP portPort for the preview server.
--no-openNoneNobooleanfalsetrue or omittedStarts server without opening a browser.
--watchNoneNobooleanfalsetrue or omittedRebuilds preview UI on source changes and auto-reloads browser.

Examples

Minimal happy path
ideon preview
Common real-world path
ideon preview ./output/my-article.md --port 4173 --no-open
Debug-focused development path
ideon preview --watch --no-open

Output and Exit Codes

On success, Ideon prints the preview URL, selected article path, and served asset directory.

Exit codeMeaning
0Preview server started successfully.
1Preview failed due to invalid path, invalid port, or runtime errors.
130Command interrupted by Ctrl+C.

Versioning and Deprecation Notes

  • Current behavior applies to Ideon 0.1.6.
  • No deprecated flags apply to this command.