Command-line interface

python -m conda_index

python -m conda_index [OPTIONS] DIR

Options

--output <output>

Output repodata to given directory.

--subdir <subdir>

Subdir to index. Accepts multiple.

-n, --channel-name <channel_name>

Customize the channel name listed in each channel’s index.html.

--patch-generator <patch_generator>

Path to Python file that outputs metadata patch instructions from its _patch_repodata function or a .tar.bz2/.conda file which contains a patch_instructions.json file for each subdir

--channeldata, --no-channeldata

Generate channeldata.json.

Default:

False

--rss, --no-rss

Write rss.xml (Only if –channeldata is enabled).

Default:

True

--bz2, --no-bz2

Write repodata.json.bz2.

Default:

False

--zst, --no-zst

Write repodata.json.zst.

Default:

False

--run-exports, --no-run-exports

Write run_exports.json.

Default:

False

--compact, --no-compact

Output JSON as one line, or pretty-printed.

Default:

True

-m, --current-index-versions-file <current_index_versions_file>

YAML file containing name of package as key, and list of versions as values. The current_index.json will contain the newest from this series of versions. For example:

python:
  • 3.8

  • 3.9

will keep python 3.8.X and 3.9.Y in the current_index.json, instead of only the very latest python version.

--base-url <base_url>

If packages should be served separately from repodata.json, URL of the directory tree holding packages. Generates repodata.json with repodata_version=2 which is supported in conda 24.5.0 or later.

--current-repodata, --no-current-repodata

Skip generating current_repodata.json, a file containing only the newest versions of all packages and their dependencies, only used by the classic solver.

Default:

True

--threads <threads>
Default:

4

--verbose

Enable debug logging.

Arguments

DIR

Required argument