> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# anaconda repo search

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

## Usage

```bash theme={null}
anaconda repo search [OPTIONS] <NAME>
```

## Description

Searches the repository for packages and artifacts matching the given name. You can filter by artifact family, platform, and control sort and pagination.

## Arguments

<GTable cols="30% 70%">
  <GHead>
    <GRow>
      <GTH>Argument</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`NAME`</GCell>
      <GCell>*(required)* Package name to search for</GCell>
    </GRow>
  </GBody>
</GTable>

## Options

<GTable cols="25% 25% 50%">
  <GHead>
    <GRow>
      <GTH>Option</GTH>
      <GTH>Default</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`-l, --limit <#>`</GCell>
      <GCell>`50`</GCell>
      <GCell>Maximum number of results to display</GCell>
    </GRow>

    <GRow>
      <GCell>`-o, --offset <#>`</GCell>
      <GCell>`0`</GCell>
      <GCell>Offset when displaying results</GCell>
    </GRow>

    <GRow>
      <GCell>`-s, --sort <COLUMN>`</GCell>
      <GCell>`download_count`</GCell>
      <GCell>Sort by column (use '-' prefix for descending)</GCell>
    </GRow>

    <GRow>
      <GCell>`-f, --family <FAMILY>`</GCell>

      <GCell />

      <GCell>Filter by artifact family: `conda`, `python`, `cran`, `anaconda_project`, `anaconda_env`, `notebook`, `gra`</GCell>
    </GRow>

    <GRow>
      <GCell>`-p, --platform <PLATFORM>`</GCell>

      <GCell />

      <GCell>Filter by platform (for example, `linux-64`, `osx-64`, `noarch`)</GCell>
    </GRow>

    <GRow>
      <GCell>`-h, --help`</GCell>

      <GCell />

      <GCell>Show help for this command</GCell>
    </GRow>
  </GBody>
</GTable>

## Examples

**Search for a package by name**

```bash theme={null}
anaconda repo search numpy
```

**Search with limit and artifact family**

```bash theme={null}
anaconda repo search "data" --limit 20 --family conda
```

**Search and sort by downloads (descending)**

```bash theme={null}
anaconda repo search requests --sort -download_count
```
