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, util.parseArgs would be helpful. Example:
cli.ts

then it outputs
terminal