CLI Tools Overview
AIRGAP Studio command-line tools usage
Integrated Terminal
AIRGAP Studio includes a built-in integrated terminal, allowing you to perform command-line tasks without leaving the IDE.
Opening the Terminal
| Method | Action |
|---|---|
| Shortcut | Ctrl+` |
| Menu | View > Terminal |
| Command Palette | Ctrl+Shift+P > Terminal: Create New Terminal |
Supported Shells
| Shell | Description |
|---|---|
| PowerShell | Default Windows shell (recommended) |
| Command Prompt (cmd) | Legacy Windows shell |
| Git Bash | Available when Git is installed |
You can change the default shell in Settings (Ctrl+,) via terminal.integrated.defaultProfile.windows.
Useful CLI Commands
Ollama Management
# List installed models
ollama list
# Check running models
ollama ps
# Manually run a model
ollama run qwen3:8b
# Start the Ollama server (if it didn't start automatically)
ollama serve
Project Management
# Initialize a new project
mkdir my-project
cd my-project
git init
# Initialize an npm project
npm init -y
# Create a Python virtual environment
python -m venv .venv
.\.venv\Scripts\Activate
File Operations
# Search for files
Get-ChildItem -Recurse -Filter "*.ts"
# Search file contents
Select-String -Path "*.ts" -Pattern "function"
# View directory structure
tree /F
AIRGAP Assistant and CLI
AIRGAP Assistant can execute terminal commands directly. Ask the AI something like "Show me a list of all TypeScript files in the project" and it will generate and run the appropriate command.
Terminal Command Execution Approval
By default, the AI requests user approval before executing terminal commands. You can change this behavior in the Auto Approve settings.
PowerShell Execution Policy
In air-gapped environments, PowerShell script execution may be blocked. In that case, check and adjust the execution policy.
# Check current policy
Get-ExecutionPolicy
# Change policy for the current user
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Administrator approval may be required depending on your security policy. Contact your organization's security administrator.
Related Documentation
- Terminal Troubleshooting - PowerShell errors and encoding issues
- Keyboard Shortcuts - Terminal-related shortcuts