vpsfree-client
v0.20.1Ruby CLI and client library for vpsFree.cz API. Available as a Homebrew formula in the toobab/tap tap for macOS.
Install with Homebrew
brew tap toobab/tap
brew install toobab/tap/vpsfree-client
# upgrade / uninstall
brew upgrade vpsfree-client
brew uninstall vpsfree-client
Details
- Official Website: https://vpsfree.cz/
- Repository: https://github.com/vpsfreecz/vpsfree-client
- Format:
.gem - Hashes (SHA256):
- Universal:
ef0dfadd1a5b7ba6183045fa8950a168d0913747f61ab9599c85642536026fcd
- Universal:
- Dependencies:
"ruby"
Caveats & Instructions
Running the client:
vpsfreectl
---
Authentication with 2FA (TOTP) workaround:
Generating a token purely via the CLI (vpsfreectl token request) often fails
due to two-factor authentication. A reliable workaround is to generate the token via cURL:
1. Request a pending token:
PENDING_TOKEN=$(curl -s -X POST https://api.vpsfree.cz/_auth/token/tokens \\
-H "Content-Type: application/json" -d '{"user":"your-username","password":"your-password"}')
2. Confirm the token with your TOTP code:
curl -X POST https://api.vpsfree.cz/_auth/token/tokens/totp \\
-H "Content-Type: application/json" -d "{\\"token\\":\\"$PENDING_TOKEN\\",\\"code\\":\\"123456\\"}"
Finally, save the active token to your local configuration for automatic login:
vpsfreectl --auth token --save your-username