Some of Stack's features will not be needed regularly or by all users. This part of the guide provides information about those features, organised as a reference guide. Some of the features are complex and separate pages are dedicated to them.
The existence or content of certain environment variables can affect how Stack behaves. For further information, see the environment variables documentation.
Stack is configured by the content of YAML files. A global YAML configuration file contains non-project specific options. A project-level YAML configuration file contains project-specific options and may contain non-project specific options. For further information, see the YAML configuration documentation.
Stack can also be configured by flags and options on the command line. Global flags and options apply to all of Stack's commands. For further information, see the global flags and options documentation.
Stack's commands are listed below, in alphabetical order.
bench
- a synonym forstack build --bench
build
- build packagesclean
- delete build artefacts for the project packagesconfig
- access and modify Stack's configurationdocker
- use Stack with Dockerdot
- dependency visualizationeval
- evaluate some Haskell code inlineexec
- executate a command in the Stack environmenthaddock
- a synonym forstack build --haddock
hoogle
- runhoogle
hpc
- generate Haskell Program Coverage (HPC) code coverage reportsghc
- runghc
ghci
- run GHCi, a REPL environmentide
- information for an integrated development environment (IDE)init
- initialise Stack's project-level YAML configuration file for an existing projectinstall
- a synonym forstack build --copy-bins
list
- list packages on Hackage or in a snapshotls
- list information about Stacknew
- create a new project with Stackpath
- information about locations used by Stackpurge
- delete the Stack working directoriesquery
- information about the buildrepl
- a synonym forstack ghci
run
- build and run an executablerunghc
- runrunghc
runhaskell
- a synonym forstack runghc
script
- run a Haskell source file as a scriptsdist
- create an archive file for a package, in a form accepted by Hackagesetup
- get GHC for a Stack projecttemplates
- information about templates for use withstack new
test
- a synonym forstack build --test
uninstall
- information about how to uninstall Stackunpack
- unpack one or more packages locallyupdate
- update the package indexupgrade
- upgrade Stackupload
- upload a package to Hackage