| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This guide provides instructions for installing AgbCloud CLI on Windows using PowerShell.
Before installing AgbCloud CLI, please ensure:
Install AgbCloud CLI with a single PowerShell command:
powershell -Command "irm https://agbcloud.github.io/agbcloud-cli/windows | iex"The installation script will:
After installation, verify that AgbCloud CLI is installed correctly:
# Close current PowerShell window and open a new one
Start-Process powershell -Verb RunAs; exit
# Or refresh the environment variables
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")# Check if agb command is available
agb --versionExpected Output:
AgbCloud CLI version 1.0.0 Git commit: abc1234 Build date: 2025-01-15T10:30:00Z
# Display help information
agb --helpExpected Output:
Command line interface for AgbCloud services Usage: agb [command] Available Commands: image Manage images login Log in to AgbCloud logout Log out from AgbCloud version Show version information help Help about any command Flags: -h, --help help for agb -v, --verbose Enable verbose output Use "agb [command] --help" for more information about a command.
# Test image command
agb image --help
# Test version command
agb version# Show help
agb --help
# Show version
agb version
# Login to AgbCloud
agb login
# List available images
agb image list
# Create a custom image
agb image create myImage --dockerfile ./Dockerfile --imageId agb-code-space-1
# Activate an image
agb image activate img-7a8b9c1d0e
# Deactivate an image
agb image deactivate img-7a8b9c1d0e# Use -v flag for detailed output
agb -v image list
agb --verbose login# Error: 'agb' is not recognized as an internal or external commandSolutions:
Restart PowerShell or refresh environment variables:
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")Check installation directory:
Get-ChildItem "$env:LOCALAPPDATA\agbcloud"# Error: Failed to download AgbCloud CLISolutions:
# Error: Access denied or execution policy restrictionSolutions:
Run as Administrator:
# Right-click PowerShell and select "Run as Administrator"Check execution policy:
Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserIf you encounter issues:
To remove AgbCloud CLI:
# Remove installation directory
Remove-Item -Path "$env:LOCALAPPDATA\agbcloud" -Recurse -Force# Remove from user PATH
$agbPath = "$env:LOCALAPPDATA\agbcloud"
$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")
$newPath = ($currentPath.Split(';') | Where-Object { $_ -ne $agbPath }) -join ';'
[Environment]::SetEnvironmentVariable("Path", $newPath, "User")# This should return an error
agb --versionNote: This installation method downloads the latest stable release. For development versions or specific releases, please visit the GitHub Releases page.
| Back | FazBrowse Home | New Git URL |