Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 files (graph)

List the files in the repo.

## Syntax

    p4 files [-m max] file ...

Syntax and naming conventions

## Description

List the files in the repo. If client syntax is used to specify the file argument, the client view mapping is used to determine the corresponding repo files.

## Options

Option | Description
--- | ---
`-m max` | Limit output to the first `max` files.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
Yes | Yes | list protection, read permission

## Examples

`p4 files //bruno_1666/...`

The depot for `projectA` is not of type `graph`, so we see metadata, such as "add change 6 (text)". The depot for `projectB` is of type `graph`, so we see only the file name:

    //depot/projectA/README.md#1 - add change 6 (text)
    //depot/projectA/src/feature.cc#1 - add change 6 (text)
    //depot/projectA/src/main.cc#1 - add change 6 (text)
    //repo/projectB/Hero/IgnoreSubviewModPreprocessor.swift
    //repo/projectB/Hero/MatchPreprocessor.swift
    //repo/projectB/README.md

Your search for returned results