golang.org/x/tools/gopls@v0.15.3/doc/command-line.md (about)

     1  # Command line
     2  
     3  **Note: The `gopls` command-line is still experimental and subject to change at any point.**
     4  
     5  `gopls` exposes some (but not all) features on the command-line. This can be useful for debugging `gopls` itself.
     6  
     7  <!--TODO(rstambler): Generate this file.-->
     8  
     9  Learn about available commands and flags by running `gopls help`.
    10  
    11  Much of the functionality of `gopls` is available through a command line interface.
    12  
    13  There are two main reasons for this. The first is that we do not want users to rely on separate command line tools when they wish to do some task outside of an editor. The second is that the CLI assists in debugging. It is easier to reproduce behavior via single command.
    14  
    15  It is not a goal of `gopls` to be a high performance command line tool. Its command line is intended for single file/package user interaction speeds, not bulk processing.