Skip to main content

CLI interface to control SURF VMs

Project description

🏄‍♂️ Surf Controller

built with Rye

🌊 Overview

Surf Controller is a powerful CLI tool for managing your cloud workspaces with ease! It provides a user-friendly interface to monitor, pause, and resume your virtual machines (VMs) effortlessly.

🚀 Features

  • 📊 Interactive CLI interface
  • 🔄 Real-time VM status updates
  • ⏸️ Pause and ▶️ resume VMs with a single keystroke
  • 📋 Multi-select functionality for batch operations
  • 📜 Live log viewing

🛠️ Installation

Use rye Rye to install surf-controller globally or add it to your local environment. Of course, you can also use pip to install it.

rye tools install surf-controller
rye add surf-controller
pip install surf-controller

This installs the surfcontroller command.

🔑 First-time Setup

You can find the documentation for the API hier: API Documentation

On your profile you can create your own API token.

You can obtain the CSRF tokens by authorizing directly with the Surf API. Use the green lock icon in the top right corner to authorize with your API-token and obtain the CSRF token by executing a request.

Copy both tokens and use them during configuration.

Run the configuration by starting the controller:

surfcontroller

On first run, Surf Controller will:

  1. 📁 Create a configuration directory in your home folder
  2. 📄 Copy a default configuration file
  3. 🔒 Prompt you for API and CSRF tokens

🎮 Usage

Run the controller:

surfcontroller

🕹️ Controls

navigate / select

  • j: Move cursor down
  • k: Move cursor up
  • Enter: Select/deselect VM
  • a: toggle Select all VMs
  • 'f': toggle Filter VMs (by username)
  • 'n': rename username
  • 'l': toggle view logs

Actions

  • p: Pause selected VMs
  • r: Resume selected VMs
  • 'u': Update VM list
  • 's': ssh into selected VM (select just one VM)

📝 Configuration

Edit ~/.surf_controller/config.toml to customize your settings.

🤝 Contributing

Contributions are welcome!

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

surf_controller-0.3.9-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file surf_controller-0.3.9-py3-none-any.whl.

File metadata

File hashes

Hashes for surf_controller-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 76eb500cd5434a92ee7350f9170c43c49c6f340e30472cfe329abb50a2f23cba
MD5 df1de620d72126a5784c1ce1d6077d99
BLAKE2b-256 009644281203969ef8afbf0c9daa677f9a029709032579726650a3360a64c433

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page