github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/docs/gno-tooling/cli/gno.md (about)

     1  ---
     2  id: gno-tooling-gno
     3  ---
     4  
     5  # gno
     6  
     7  `gno` is a handy tool for developing and prototyping Gno packages and realms. You may use `gno` to use the GnoVM without an actual blockchain to build or test realms in a local environment.
     8  
     9  ## Run `gno` Commands
    10  
    11  The following command will run `gno`.
    12  
    13  ```bash
    14  gno {SUB_COMMAND}
    15  ```
    16  
    17  **Subcommands**
    18  
    19  | Name         | Description                                |
    20  | ------------ | ------------------------------------------ |
    21  | `test`       | Tests a gno package.                       |
    22  | `transpile`  | Transpiles a `.gno` file to a `.go` file. |
    23  | `repl`       | Starts a GnoVM REPL.                       |
    24  
    25  ### `test`
    26  
    27  #### **Options**
    28  
    29  | Name         | Type          | Description                                                        |
    30  | ------------ | ------------- | ------------------------------------------------------------------ |
    31  | `v`          | Boolean       | Displays verbose output.                                     |
    32  | `root-dir`   | String        | Clones location of github.com/gnolang/gno (gno tries to guess it). |
    33  | `run`        | String        | Test name filtering pattern.                                       |
    34  | `timeout`    | time.Duration | The maximum execution time in ns.                                  |
    35  | `transpile`  | Boolean       | Transpiles a `.gno` file to a `.go` file before testing.          |
    36  
    37  ### `transpile`
    38  
    39  #### **Options**
    40  
    41  | Name        | Type    | Description                                                     |
    42  | ----------- | ------- | --------------------------------------------------------------- |
    43  | `v`         | Boolean | Displays verbose output.                                  |
    44  | `skip-fmt`  | Boolean | Skips the syntax checking of generated `.go` files.             |
    45  | `gobuild`   | Boolean | Run `go build` on generated `.go` files, ignoring test files.   |
    46  | `go-binary` | String  | The go binary to use for building (default: `go`).              |
    47  | `gofmt`     | String  | The gofmt binary to use for syntax checking (default: `gofmt`). |
    48  | `output`    | String  | The output directory (default: `.`).                            |
    49  
    50  ### `repl`
    51  
    52  #### **Options**
    53  
    54  | Name       | Type    | Description                                                        |
    55  | ---------- | ------- | ------------------------------------------------------------------ |
    56  | `root-dir` | String  | Clones location of github.com/gnolang/gno (gno tries to guess it). |