---
title: nextflow view
description: Reference for the nextflow view command. View a project's script files.
---

# `nextflow view`

View a project's script files.

## Usage

```console
$ nextflow view [options] [project]
```

## Description

The `view` command inspects a pipeline already stored in the global Nextflow cache. To download a pipeline into the global cache `~/.nextflow/assets`, use the `pull` command.

## Options

##### `-h, -help`

Print the command usage.

##### `-l`

List repository content.

##### `-q`

Hide header line.

##### `-r, -revision`

<AddedInVersion version="26.04" />

Project revision. Can be a git branch, tag, or commit SHA number.

## Examples

View the contents of a downloaded pipeline:

```console
$ nextflow view nextflow-io/hello

== content of file: .nextflow/assets/.repos/nextflow-io/hello/main.nf
#!/usr/bin/env nextflow

process sayHello {
  input:
    val x
  output:
    stdout
  script:
    """
    echo '$x world!'
    """
}

workflow {
  channel.of('Bonjour', 'Ciao', 'Hello', 'Hola') | sayHello | view
}
```

List the folder structure of a downloaded pipeline:

```console
$ nextflow view -l nextflow-io/hello

== content of path: .nextflow/assets/.repos/nextflow-io/hello
.git
.gitignore
LICENSE
README.md
main.nf
nextflow.config
```

View the contents of a downloaded pipeline without the header:

```console
$ nextflow view -q nextflow-io/hello

#!/usr/bin/env nextflow

process sayHello {
  input:
    val x
  output:
    stdout
  script:
    """
    echo '$x world!'
    """
}

workflow {
  channel.of('Bonjour', 'Ciao', 'Hello', 'Hola') | sayHello | view
}
```
