Skip to main content
The argument vector is the list of arguments passed to the program when it is run. It is available as Bun.argv.
cli.ts

Running this file with arguments results in the following:
terminal

To parse argv into a more useful format, use util.parseArgs.
cli.ts

Running cli.ts with the same arguments prints the parsed values.
terminal