Documentation

Terminal

Terminal

The Terminal panel in the right side of the Workspace Editor provides a full command-line interface running inside a Docker container. This is where Terraform commands are executed.

Accessing the Terminal

  • Click the 'Terminal' tab in the right panel
  • The terminal connects to your VS Container (Docker container) automatically

Terminal Features

  1. 1
    Command Execution
    • Type commands and press Enter to execute
    • Supports all standard Linux/Bash commands
    • Pre-installed tools: Terraform/OpenTofu, Git, cloud provider CLIs
    • Commands run inside an isolated Docker container
  2. 2
    Color-Coded Output
    • Green: Success messages
    • Red: Error messages
    • Yellow: Warning messages
    • White/Gray: Informational output
  3. 3
    Terminal Search
    • Click the search icon in the terminal toolbar
    • Type to search for text in the terminal history
    • Use arrow keys to navigate between matches
    • Press Escape to close search
  4. 4
    Context Menu (Right-Click)
    • Right-click anywhere in the terminal to open the context menu
    • Options:
    • Copy: Copy selected text
    • Paste: Paste from clipboard
    • Select All: Select all terminal content
    • Clear: Clear the terminal screen
  5. 5
    Command Palette
    • Click the command palette icon in the terminal toolbar
    • Provides quick access to common commands:
    • terraform init
    • terraform plan
    • terraform apply
    • terraform destroy
    • terraform validate
    • terraform fmt
    • git status
    • git pull
  6. 6
    Web Links
    • URLs appearing in terminal output are automatically made clickable
    • Click a link to open it in a new browser tab
  7. 7
    Terminal Scrollback
    • Scroll up to view previous command output
    • The terminal maintains a history buffer

Common Terraform Commands in Terminal

  • terraform init: Initialize working directory and download providers
  • terraform validate: Check configuration for syntax errors
  • terraform plan -out=tfplan: Create and save a plan
  • terraform apply tfplan: Apply the saved plan
  • terraform destroy: Destroy all managed resources
  • terraform state list: List all resources in state
  • terraform output: Show output values
  • terraform fmt: Format code to canonical style