Skip to Content
CLI

CLI Reference

NeoRun includes a PowerShell CLI module for command-line deployments and pod management.

Installation

# One-line install irm https://neorun.dev/cli/install.ps1 | iex # Or clone and import manually Import-Module ./cli/NeoRun.psm1

Configuration

Login

# Interactive login (opens browser) Connect-NeoRun # API key login Connect-NeoRun -ApiKey "neo_sk_your_key_here"

Check Connection

Get-NeoRunStatus

Commands

Deploy a Repository

# Deploy from GitHub URL New-NeoRunDeployment -RepoUrl "https://github.com/user/repo" # Deploy with GPU New-NeoRunDeployment -RepoUrl "https://github.com/user/ml-model" -Gpu # Deploy with custom name New-NeoRunDeployment -RepoUrl "https://github.com/user/repo" -Name "my-app"

List Pods

# List all pods Get-NeoRunPod # List running pods only Get-NeoRunPod -Status Running

Manage Pods

# Stop a pod Stop-NeoRunPod -PodId "pod-uuid" # Start a stopped pod Start-NeoRunPod -PodId "pod-uuid" # Remove a pod Remove-NeoRunPod -PodId "pod-uuid" # Get pod logs Get-NeoRunPodLog -PodId "pod-uuid" -Tail 50

Projects

# List projects Get-NeoRunProject # Get project details Get-NeoRunProject -ProjectId "project-uuid"

Job Status

# Get build job status Get-NeoRunJob -JobId "job-uuid" # Watch build progress Watch-NeoRunJob -JobId "job-uuid"

Configuration File

The CLI stores configuration in ~/.neorun/config.json:

{ "api_url": "https://api.neorun.dev", "api_key": "neo_sk_...", "default_gpu": false }

Environment Variables

VariableDescription
NEORUN_API_KEYAPI key (overrides config file)
NEORUN_API_URLCustom API endpoint
NEORUN_GPUDefault GPU setting (true/false)

Examples

CI/CD Integration

# In GitHub Actions or Azure DevOps Import-Module NeoRun Connect-NeoRun -ApiKey $env:NEORUN_API_KEY $job = New-NeoRunDeployment -RepoUrl $env:REPO_URL -Gpu Watch-NeoRunJob -JobId $job.Id

Batch Operations

# Stop all running pods Get-NeoRunPod -Status Running | Stop-NeoRunPod # Redeploy all projects Get-NeoRunProject | ForEach-Object { New-NeoRunDeployment -ProjectId $_.Id }
Last updated on