Public
Like
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Minimal example for creating a CLI in Val Town
Remix this project to start building your own CLI
Once you've remixed this project, run this command in your computer's terminal.
Replace the URL with the module URL from your val's main.tsx
file,
and pass in the name of the command to the -n
flag.
This is the standard way to install CLIs in Deno. If your CLI needs more permissions, you may need to pass additional flags. See the deno install for more info.
deno install -gn hello https://esm.town/v/jxnblk/cli-starter/main.tsx
To uninstall, run:
deno uninstall hello