Configure Telerik NuGet
/install configure-telerik-nuget
\r \r Use these helper functions to manage Telerik NuGet source configuration.\r \r Get a new api key at https://www.telerik.com/account/downloads/api-keys\r \r
Function: configure\r
\r
Sets a global user environment variable for the Telerik API key and updates/creates nuget.config so credentials use the environment variable instead of a hardcoded secret.\r
\r
function Configure-TelerikNuGetSource {\r
param(\r
[Parameter(Mandatory = $true)]\r
[string]$ApiKey,\r
\r
[string]$ApiKeyEnvVarName = "TELERIK_NUGET_API_KEY",\r
[string]$SourceName = "Telerik_NuGet_Server",\r
[string]$SourceUrl = "https://nuget.telerik.com/v3/index.json",\r
[string]$NuGetConfigPath = "./nuget.config"\r
)\r
\r
# Store API key as a user-level environment variable so it is available globally\r
[Environment]::SetEnvironmentVariable($ApiKeyEnvVarName, $ApiKey, "User")\r
$env:$ApiKeyEnvVarName = $ApiKey\r
\r
if (-not (Test-Path $NuGetConfigPath)) {\r
@"\r
\x3C?xml version="1.0" encoding="utf-8"?>\r
\x3Cconfiguration>\r
\x3CpackageSources />\r
\x3CpackageSourceCredentials />\r
\x3C/configuration>\r
"@ | Set-Content -Path $NuGetConfigPath -Encoding UTF8\r
}\r
\r
[xml]$nugetConfig = Get-Content -Path $NuGetConfigPath\r
\r
if (-not $nugetConfig.configuration.packageSources) {\r
$packageSourcesNode = $nugetConfig.CreateElement("packageSources")\r
$nugetConfig.configuration.AppendChild($packageSourcesNode) | Out-Null\r
}\r
\r
if (-not $nugetConfig.configuration.packageSourceCredentials) {\r
$credentialsNode = $nugetConfig.CreateElement("packageSourceCredentials")\r
$nugetConfig.configuration.AppendChild($credentialsNode) | Out-Null\r
}\r
\r
$existingSource = $nugetConfig.configuration.packageSources.add | Where-Object {\r
$_.key -eq $SourceName\r
}\r
\r
if ($existingSource) {\r
$existingSource.value = $SourceUrl\r
} else {\r
$sourceNode = $nugetConfig.CreateElement("add")\r
$sourceNode.SetAttribute("key", $SourceName)\r
$sourceNode.SetAttribute("value", $SourceUrl)\r
$nugetConfig.configuration.packageSources.AppendChild($sourceNode) | Out-Null\r
}\r
\r
$existingCredentialNode = $nugetConfig.configuration.packageSourceCredentials.$SourceName\r
\r
if (-not $existingCredentialNode) {\r
$existingCredentialNode = $nugetConfig.CreateElement($SourceName)\r
$nugetConfig.configuration.packageSourceCredentials.AppendChild($existingCredentialNode) | Out-Null\r
}\r
\r
$existingCredentialNode.RemoveAll()\r
\r
$usernameNode = $nugetConfig.CreateElement("add")\r
$usernameNode.SetAttribute("key", "Username")\r
$usernameNode.SetAttribute("value", "api-key")\r
$existingCredentialNode.AppendChild($usernameNode) | Out-Null\r
\r
$passwordNode = $nugetConfig.CreateElement("add")\r
$passwordNode.SetAttribute("key", "ClearTextPassword")\r
$passwordNode.SetAttribute("value", "%$ApiKeyEnvVarName%")\r
$existingCredentialNode.AppendChild($passwordNode) | Out-Null\r
\r
$nugetConfig.Save((Resolve-Path $NuGetConfigPath))\r
\r
Write-Host "Configured Telerik feed '$SourceName' in '$NuGetConfigPath'."\r
Write-Host "Saved API key in user environment variable '$ApiKeyEnvVarName'."\r
Write-Host "Restart your terminal/IDE so new processes can read the updated environment variable."\r
}\r
```\r
\r
Example usage:\r
\r
```powershell\r
Configure-TelerikNuGetSource -ApiKey "\x3Ctelerik-api-key>"\r
```\r
\r
## Changelog\r
\r
### 1.1.0 - 2026-03-20\r
\r
- Added skill package metadata: `required_binaries`, `author`, `homepage`, and `source`.\r
- Updated configure function to save API key as a user-level environment variable.\r
- Updated `nuget.config` credential handling to use environment variable expansion instead of hardcoded API key values.\r
- Added `version` field to frontmatter.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install configure-telerik-nuget - 安装完成后,直接呼叫该 Skill 的名称或使用
/configure-telerik-nuget触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Configure Telerik NuGet 是什么?
Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。
如何安装 Configure Telerik NuGet?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install configure-telerik-nuget」即可一键安装,无需额外配置。
Configure Telerik NuGet 是免费的吗?
是的,Configure Telerik NuGet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Configure Telerik NuGet 支持哪些平台?
Configure Telerik NuGet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Configure Telerik NuGet?
由 Lance McCarthy(@lancemccarthy)开发并维护,当前版本 v1.1.0。