CLI Reference
The abcls CLI provides subcommands for formatting, validating, rendering, and converting ABC notation files. Install it with:
npm install -g abclsRun abcls --help or abcls <subcommand> --help for the full option listing.
format
Section titled “format”Formats an ABC file according to the formatter’s rules.
abcls format myfile.abcOptions:
-w, --write— write the formatted output back to the file (otherwise prints to stdout)
Validates an ABC file and reports syntax or semantic errors.
abcls check myfile.abcrender
Section titled “render”Renders ABC notation to SVG. Produces one SVG file per tune.
abcls render myfile.abcOptions:
-t, --tune <numbers...>— render only the specified tunes by X: number (supports comma-separated, dash-separated, or repeated flags)--ignore-parse-errors— continue rendering even if the ABC file has parsing errors--ignore-missing-tunes— continue rendering even if some requested tunes are not found
abc2midi
Section titled “abc2midi”Converts an ABC file to MIDI.
abcls abc2midi myfile.abc -o myfile.midOptions:
-o, --output <file>— output MIDI file path (writes to stdout if omitted)-t, --tune <numbers...>— export only the specified tunes by X: number
midi2abc
Section titled “midi2abc”Converts a MIDI file to ABC notation.
abcls midi2abc myfile.mid -o myfile.abcOptions:
-o, --output <file>— output ABC file path (writes to stdout if omitted)--title <title>— set the title (T: field)--composer <composer>— set the composer (C: field)
abcx2abc
Section titled “abcx2abc”Converts an ABCx chord sheet to standard ABC notation.
abcls abcx2abc myfile.abcx -o myfile.abcOptions:
-o, --output <file>— write output to a file instead of stdout
Starts the ABC language server. This is used by editor integrations (VS Code, Kakoune, Neovim, etc.) and is not typically invoked directly.
abcls lsp --stdioOptions:
--stdio— use stdio transport (default)--socket <path>— use Unix socket transport at the given path