CLI Reference

[CLI REFERENCE]

Preferred bin is pyne (alias pynescript) — a Click group for check, format, lint, compile, run, and optimize. Language server is a separate bin: pyne-lsp. 13 groups · 6 categories.

hoox-pyne • v0.3.12 • bins pyne · pyne-lsp

Installation guide
Quick Start
Global options (apply to every command)
--no-colorDisable ANSI colors (honors NO_COLOR)
-V, --versionPrint version
-h, --helpShow help
[]
01

Validate

5 groups
[ Validate ]01

pyne check

Parse-only validation of Pine Script™ sources. CI-friendly exit codes. Walks directories; omit or - → stdin.

Walks directories. Omit PATHS or pass - to read stdin. Prefer .pyne; .pine remains for TradingView® exports.

Flags — check to add to commands
[ Validate ]02

pyne format

alias: fmt

Canonicalize Pine Script™ by parse → unparse (structural, not a full style formatter).

Flags — check to add to commands
[ Validate ]03

pyne parse-and-dump

alias: dump · ast

Dump the parsed AST for a single Pine Script™ file.

Flags — check to add to commands
[ Validate ]04

pyne parse-and-unparse

alias: unparse

Round-trip a Pine Script™ file through parse → unparse.

Flags — check to add to commands
[ Validate ]05

pyne lint

Static diagnostics for one Pine Script™ file or stdin. Not a directory walk.

One file or stdin — not a directory walk. Use pyne check for recursive parse-only.

Flags — check to add to commands
02

Execute

4 groups
[ Execute ]01

pyne compile

Transpile or compile-check via pynescript.compiler.compile_script. --emit prints generated Python without exec/JIT.

[compile] extra required for full Numba; --emit works without JIT.

Flags — check to add to commands
[ Execute ]02

pyne prewarm

H2 warm-compile: pay cold JIT before the first interactive run. Optional PATH… compiles scripts into IR caches.

Flags — check to add to commands
[ Execute ]03

pyne run

Compile and execute on deterministic synthetic OHLCV (same compile pipeline as Pro API mode=compile).

Synthetic OHLCV compile-only. Does NOT call Runtime.run. No --mode. Prefer package Runtime / Pro API for real bars.

Flags — check to add to commands
[ Execute ]04

pyne optimize

Search input.* values for a strategy() script. Loops interpret Runtime — not /backtest/quick. Requires --space JSON.

strategy() scripts only. Interpret Runtime — not /backtest/quick.

Flags — check to add to commands
03

Data

1 group
[ Data ]01

pyne data

Fetch market bars for a required SYMBOL. Default provider is mock (offline-safe).

CCXT needs pip install "hoox-pyne[data]". Default provider is mock.

Flags — check to add to commands
04

LSP

1 group
[ LSP ]01

pyne-lsp

alias: pynescript-lsp

Language server console script. Not a Click subcommand. Alias pynescript-lsp. Requires [lsp] extra.

Same entry as python -m pynescript.langserver. pip install "hoox-pyne[lsp]".

05

PyneTS

1 group
[ PyneTS ]01

pynets

Bun CLI for @hoox-sh/pynets 0.2.0. Parse, format, dump, and evaluate in TypeScript. Unlike Python pyne run, pynets run calls Runtime.run.

Install with bun add @hoox-sh/pynets. Unlike Python pyne run, pynets run calls Runtime.run.

Flags — check to add to commands
06

Meta

1 group
[ Meta ]01

pyne info

alias: ls

Print package version, Python, platform, and whether numba / rich extras are available.

Flags — check to add to commands
Command Groups13
Categories6
Subcommands34
Version0.3.12
pyne check pyne run → evaluate