Forrest logo
tool overview
On this page you find all important commands for the CLI tool coffee. If the command you are looking for is missing please ask our AI.

coffee

Coffee is a popular command line tool used to compile, run, and manage JavaScript code written in CoffeeScript language. CoffeeScript is a programming language that compiles into JavaScript, offering a concise and readable syntax with additional features such as comprehensions and function binding.

With the coffee command, developers can efficiently compile CoffeeScript code into JavaScript, which can be executed and used in web applications, server-side applications, or any JavaScript environment. The tool provides options to customize the output and generate source maps for easier debugging.

Coffee also offers a development server called coffee-server, which allows developers to automatically compile and serve CoffeeScript files on the fly, allowing for live-reloading of web applications during the development process.

Additionally, coffee-script supports a command called coffee-repl, which launches an interactive CoffeeScript REPL (Read Evaluate Print Loop) environment, providing an interactive shell for testing and experimenting with CoffeeScript code.

Overall, coffee is a powerful and versatile command line tool that greatly facilitates the development and management of CoffeeScript projects.

List of commands for coffee:

  • coffee:tldr:7a11f coffee: Run a script.
    $ coffee ${filename-coffee}
    try on your machine
    explain this command
  • coffee:tldr:826f7 coffee: Compile to JavaScript and save to a file with the same name.
    $ coffee --compile ${filename-coffee}
    try on your machine
    explain this command
  • coffee:tldr:888d6 coffee: Watch script for changes and re-run script.
    $ coffee --watch ${filename-coffee}
    try on your machine
    explain this command
  • coffee:tldr:94168 coffee: Start a REPL (interactive shell).
    $ coffee --interactive
    try on your machine
    explain this command
  • coffee:tldr:d04f7 coffee: Compile to JavaScript and save to a given output file.
    $ coffee --compile ${filename-coffee} --output ${filename-js}
    try on your machine
    explain this command
tool overview