zVSC: Zerops VS Code Extension for Interacting with Zerops
Features
- Deploy Applications: Push your code directly to Zerops services with a single click
- VPN Connection Management: Connect to your Zerops VPN directly from VS Code
- Project Configuration: Initialize and configure Zerops projects and services
- Recipe Templates: Clone and use ready-made project templates
- Documentation Access: Access Zerops documentation directly within VS Code
- Web Interface Integration: Open the Zerops dashboard, project pages, and service details in your browser
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Zerops"
- Click Install
- Reload VS Code when prompted
Prerequisites
Authentication
Generate a Personal Access Token
- Navigate to Settings > Access Token Management in your Zerops account
- Click "Generate New Token"
- Set an appropriate name and click "Generate Token"
- Copy the displayed token (it will be shown only once)
Login to Zerops from VS Code
- Open the Command Palette (Ctrl+Shift+P)
- Type "Zerops: Login" and select it
- Paste your access token when prompted
Alternatively, use the Zerops menu in the status bar by clicking the rocket option.
Usage
Status Bar Controls
The extension adds several options to your VS Code status bar:
- Zerops: Main menu for all Zerops commands
- zPush: Push your code to Zerops
- zService: Explore service options
- zGUI: Open Zerops dashboard
- zVpn Up: Connect to Zerops VPN
- zVpn Down: Disconnect from Zerops VPN
Main Commands
Deploying Code
- Click the "Zerops" option in the status bar
- Select "Push to Zerops"
- Select your target service (or configure one if not set up)
Accessing Zerops Dashboard
- Click the "Zerops" option
- Select "Explore GUI" and then "Open GUI"
Using Recipe Templates
- Click the "Zerops" option
- Select "Clone Recipe"
- Choose from available templates
Configuration Management
- Click the "Zerops" option
- Select "Init Configurations"
- Choose "Init zerops.yml" or "Init zerops-project-import.yml"
Project Configuration
To configure your project, set up the service and project IDs:
- Click the "Zerops" option
- Select "Settings"
- Choose "Add Service ID" or "Add Project ID"
- Enter the IDs from your Zerops dashboard
Troubleshooting
VPN Connection Issues
If you're having trouble connecting to the VPN:
- Ensure WireGuard is installed and running
- Check that your Project ID is correctly configured
- Try disconnecting and reconnecting
Authentication Problems
If you're experiencing login issues:
- Verify your access token is valid
- Try logging out and logging back in
- Regenerate a new token if needed
Support and Feedback
License
This extension is licensed under the MIT License. See the LICENSE file for details.
| |