返回 Skill 列表
extension
分类: 开发与工程无需 API Key

env-update-secrets

在用户机器上更新环境密钥(如GITHUB_TOKEN、NPM_TOKEN或API密钥)时使用

person作者: jakexiaohubgithub

Updating Environment Secrets

Location

All secrets live in: ~/.config/fish/config.secrets.fish

This file is sourced by ~/.config/fish/config.fish on shell startup.

Format

export VAR_NAME='value'

Current Secrets

| Variable | Purpose | |----------|---------| | GITHUB_TOKEN | GitHub CLI and API authentication | | NPM_TOKEN | npm registry authentication | | NPM_PUBLISH_TOKEN | npm package publishing |

Workflow

  1. Read ~/.config/fish/config.secrets.fish
  2. Edit the relevant export line with new value
  3. Tell user to reload: source ~/.config/fish/config.fish

Adding New Secrets

Add new export lines to the same file. Keep secrets consolidated here rather than scattered across dotfiles.