LinuxCommandLibrary

raco

TLDR

Install package

$ raco pkg install [package-name]
copy
Update packages
$ raco pkg update
copy
Remove package
$ raco pkg remove [package-name]
copy
Show installed packages
$ raco pkg show
copy
Create executable
$ raco exe [program.rkt]
copy
Run tests
$ raco test [file.rkt]
copy
Build documentation
$ raco docs
copy
Make distribution
$ raco distribute [dir] [executable]
copy

SYNOPSIS

raco command [options] [args]

DESCRIPTION

raco is Racket's command-line tool for managing packages and building programs.
Package management installs from the Racket package catalog. Dependencies are resolved automatically.
Executable creation compiles Racket programs. Standalone binaries include runtime.
Testing runs unit tests in source files. Test submodules are discovered automatically.
Documentation generation builds HTML docs. Scribble documentation is compiled.
Distribution bundles executables with dependencies. Creates portable packages.

PARAMETERS

pkg

Package management.
exe
Create executable.
test
Run tests.
docs
Documentation.
setup
Setup collections.
distribute
Create distribution.
make
Compile files.
check-requires
Check dependencies.

CAVEATS

Some commands require setup first. Large packages may take time. Platform-specific executables.

HISTORY

raco is the standard tool distributed with Racket (formerly PLT Scheme). It consolidates package management, building, and development tasks.

SEE ALSO

racket(1), drracket(1)

Copied to clipboard