Usage
Replace <CHANNEL> with the channel to mirror to (with —channel / -c).
Replace <NAME> with the mirror name.
Replace <SOURCE> with the source channel URL (for example, https://conda.anaconda.org/example-channel).
Replace <CRON>, <URL>, and <ID> as needed for schedule, proxy, and policy.
Replace <NAME> with the mirror name.
Replace <SOURCE> with the source channel URL (for example, https://conda.anaconda.org/example-channel).
Replace <CRON>, <URL>, and <ID> as needed for schedule, proxy, and policy.
Description
Manages Anaconda repository mirrors. You can create, update, delete, stop, or restart a mirror. You can also list mirrors, show mirror properties, and check the sync state of a mirror. A mirror copies packages from a source channel into one of your channels. You can configure the mirror mode (passive or active), the mirror type (conda, python_simple, or CRAN), and an optional cron schedule and proxy.
Options
Option
Default
Description
-c, --channel <CHANNEL>Channel to mirror to
--create <NAME>Create a new mirror
--update <NAME>Update an existing mirror
--delete <NAME>Delete a mirror
--stop <NAME>Stop a mirror
--restart <NAME>Restart a mirror
--list, -lList all mirrors
--show <NAME> [PROP ...]Show mirror properties:
id, name, source, type, mode, state, proxy, cron, last_run_at, created_at, updated_at--list-allList all mirrors
--sync-state <NAME>Show sync state of a mirror by name
-s, --source <URL>Source channel URL (for example, https://conda.anaconda.org/conda-test)
-n, --name <NAME>Mirror name
--mode <MODE>passiveMirror mode:
passive (files on demand) or active (download all)--type <TYPE>Mirror type:
conda, python_simple, or CRAN--cron <CRON>Cron string for mirror job schedule
--proxy <URL>Proxy URL for mirroring
--policy-id <ID>Policy ID to apply to the mirror
--use-channel-policy <BOOL>Set to
True to apply the policy connected to the channel. When False, provide --policy-id.--run_nowRun the mirror job immediately instead of waiting for the cron schedule
-h, --helpShow full help including filter options
Filter options
Filters narrow the set of packages mirrored from the source channel. Some filters are specific to an artifact family.Option
Default
Description
--subdirs <LIST>[conda] Comma-separated conda subdirs to mirror (for example,
linux-64,osx-64,noarch)--projects <LIST>[python] Comma-separated PyPI projects to mirror
--licenses <LIST>Comma-separated licenses to include. Prepend
- to exclude (for example, mit,bsd,-gpl3). Values: agpl, gpl2, gpl3, lgpl, bsd, mit, apache, psf, public_domain, proprietary, other, none--only_spec <SPEC>MatchSpec to include exclusively. Can be repeated for multiple entries.
--exclude_spec <SPEC>MatchSpec to exclude. Can be repeated for multiple entries.
--include_spec <SPEC>MatchSpec to include. Can be repeated for multiple entries.
--cve_score <SCORE>Only mirror files with CVE score less than or equal to this value (for example,
9.5)--exclude_uncurated_cve_packagesExclude packages with uncurated CVEs from mirroring
--only_signed [BOOL]FalseOnly mirror signed packages
--date_from <DATE>[conda] Only mirror packages published on or after this date (YYYY-mm-dd)
--date_to <DATE>[conda] Only mirror packages published on or before this date (YYYY-mm-dd)