Skip to content

Support oras repo ls --oci-layout-path #1770

Description

@Wwwsylvia

What is the version of your ORAS CLI

v1.3.0-beta.3

What would you like to be added?

With the support of oras backup and restore, users are able to back up artifacts from multiple registries/repositories to an OCI layout.

We should consider supporting OCI layout for oras repo ls to allow users to list all repositories inside the OCI layout for better usability.

Possible UX:

$ oras repo ls --oci-layout-path oci-dir/
foo.example.com/test
bar.example.com/dev/hello-world
bar.example.com/something/else

Why is this needed for ORAS?

This feature would enhance the usability of the ORAS backup and restore functionality by providing users with a clear overview of all repositories contained within an OCI layout.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    and removed
    triage
    on Jul 4, 2025
  2. added theissue type on Jul 4, 2025
  3. added this to the v1.4.0 milestone on Jul 4, 2025
  4. shizhMSFT commented on Jul 4, 2025

    @shizhMSFT
    Contributor

    Additional possible UX:

    $ oras repo ls --oci-layout-path oci-dir/ bar.example.com
    dev/hello-world
    something/else
  5. TerryHowe commented on Jul 4, 2025

    @TerryHowe
    Member

    Should we consider making the user specify the regular expression like the ls command? bar.example.com*

  6. TerryHowe commented on Jul 4, 2025

    @TerryHowe
    Member

    If this was to act like ls, users could in theory specify multiple regular expressions. oras repo ls --oci-layout-path oci-dir/ *v1.31* *v.1.32*

  7. sajayantony commented on Jul 15, 2025

    @sajayantony
    Contributor

    I'm actually leaning towards pipe and filter instead of supporting a built-in filter just to keep the code simpler here.

  8. MrShubhamJadhav commented on Sep 28, 2026

    @MrShubhamJadhav

    Hi @Wwwsylvia , I'd like to work on this issue as a first-time contributor.

    One question before I start: repo tags --oci-layout-path relies on tags being written in the qualified registry/repository:tag form to group correctly, but oras backup currently writes bare tag names (e.g. v1), not that qualified form. Should repo ls --oci-layout-path just rely on the same convention as repo tags (skipping/ignoring bare tags), or is there a different approach in mind?

    Happy to get started either way.

  9. modified the milestones: v1.4.0, v1.5.0 on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions