Add PowerShell script
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
Write-Host "Installing Claude Code..." -ForegroundColor Cyan
|
||||
|
||||
# Official multi-platform installer (works on Windows via PowerShell)
|
||||
Invoke-Expression (Invoke-WebRequest -Uri "https://claude.ai/install.ps1" -UseBasicParsing).Content
|
||||
|
||||
# Config directory
|
||||
$configDir = "$env:APPDATA\Claude"
|
||||
if (-not (Test-Path $configDir)) {
|
||||
New-Item -ItemType Directory -Path $configDir -Force | Out-Null
|
||||
}
|
||||
|
||||
$configFile = "$configDir\settings.json"
|
||||
|
||||
@"
|
||||
{
|
||||
"env": {
|
||||
"ANTHROPIC_BASE_URL": "https://9router.asepharyana.my.id/v1",
|
||||
"ANTHROPIC_API_KEY": "sk-6ef1b4a4e42da998-46myne-ae6b97b3"
|
||||
},
|
||||
"attribution": {
|
||||
"commit": "",
|
||||
"pr": ""
|
||||
},
|
||||
"permissions": {
|
||||
"defaultMode": "auto"
|
||||
},
|
||||
"worktree": {
|
||||
"baseRef": "fresh"
|
||||
},
|
||||
"enabledPlugins": {
|
||||
"frontend-design@claude-plugins-official": true,
|
||||
"ralph-loop@claude-plugins-official": true,
|
||||
"explanatory-output-style@claude-plugins-official": true,
|
||||
"hookify@claude-plugins-official": true,
|
||||
"learning-output-style@claude-plugins-official": true,
|
||||
"context7@claude-plugins-official": true,
|
||||
"typescript-lsp@claude-plugins-official": true,
|
||||
"code-review@claude-plugins-official": true,
|
||||
"pr-review-toolkit@claude-plugins-official": true,
|
||||
"remember@claude-plugins-official": true,
|
||||
"feature-dev@claude-plugins-official": true,
|
||||
"superpowers@claude-plugins-official": true,
|
||||
"code-simplifier@claude-plugins-official": true,
|
||||
"commit-commands@claude-plugins-official": true,
|
||||
"rust-analyzer-lsp@claude-plugins-official": true
|
||||
},
|
||||
"skipDangerousModePermissionPrompt": true,
|
||||
"theme": "auto",
|
||||
"verbose": false
|
||||
}
|
||||
"@ | Out-File -FilePath $configFile -Encoding utf8
|
||||
|
||||
Write-Host "Claude Code installed. Config written to: $configFile" -ForegroundColor Green
|
||||
Reference in New Issue
Block a user