Skip to main content

Manage mirror sources for common development tools

Project description

mirrorctl

用于管理主流开发工具镜像源的 CLI。

安装(本地)

pip install -e .

支持的工具

  • pip
  • npm
  • pnpm
  • yarn
  • cargo
  • gem
  • go
  • maven
  • conda

用法

# 查看已支持工具及当前镜像
mirrorctl list

# 查看内置 provider(目前只有 official)
mirrorctl providers

# 设置镜像(自定义 URL)
mirrorctl set pip --url https://pypi.org/simple
mirrorctl set npm --url https://registry.npmjs.org/

# 查看当前镜像
mirrorctl current pip

# 重置为官方镜像
mirrorctl reset pip

# 一键设置清华 TUNA 镜像
mirrorctl tuna

# 批量设置某个 provider
mirrorctl set-all --provider tuna

说明

  • mirrorctl 会修改对应工具的用户级配置文件(例如 ~/.npmrc~/.cargo/config.toml)。
  • 如果你需要公司/校园镜像,请使用 --url 指定对应地址。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirrorctl-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mirrorctl-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file mirrorctl-0.1.0.tar.gz.

File metadata

  • Download URL: mirrorctl-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for mirrorctl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f8b4f1a582b0339a8b5dca737953acec7a6f8c298c90d8630c7b0ced5cfe36f
MD5 4d517bc7969a10b15580cc152247b062
BLAKE2b-256 9b56e67728ca1c6f8ece9820bc6fc57b686938c56c2a4c8d4385433d65cfc7a0

See more details on using hashes here.

File details

Details for the file mirrorctl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mirrorctl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for mirrorctl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 475704e2878b191082cb99bb0b2b61de8ad53281006f10715168855dfc536d91
MD5 80cc46dac2725764c523fd5851c9ba78
BLAKE2b-256 4626b066faa714c0cbd7d53c73ebdee12dc3d5a794ddf66a7e779222f7c0251c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page