{"id":19647852,"url":"https://github.com/nl2go/hrobot-cli","last_synced_at":"2026-03-15T13:45:04.627Z","repository":{"id":52927943,"uuid":"222395298","full_name":"nl2go/hrobot-cli","owner":"nl2go","description":"A command-line interface for Hetzner Robot https://robot.your-server.de/","archived":false,"fork":false,"pushed_at":"2021-04-13T16:37:42.000Z","size":85,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T09:24:48.088Z","etag":null,"topics":["go","golang","hetzner","hetzner-robot-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nl2go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-18T08:09:39.000Z","updated_at":"2023-02-08T07:28:00.000Z","dependencies_parsed_at":"2022-09-26T18:51:26.227Z","dependency_job_id":null,"html_url":"https://github.com/nl2go/hrobot-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nl2go%2Fhrobot-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nl2go%2Fhrobot-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nl2go%2Fhrobot-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nl2go%2Fhrobot-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nl2go","download_url":"https://codeload.github.com/nl2go/hrobot-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251338783,"owners_count":21573611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","hetzner","hetzner-robot-api"],"created_at":"2024-11-11T14:46:15.033Z","updated_at":"2026-03-15T13:44:59.588Z","avatar_url":"https://github.com/nl2go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hrobot-cli: Command-line interface for Hetzner Robot Webservice\n\n![Build](https://gitlab.com/newsletter2go/hrobot-cli/badges/master/pipeline.svg) ![Coverage](https://gitlab.com/newsletter2go/hrobot-cli/badges/master/coverage.svg)\n\n`hrobot-cli` is a command-line interface for interacting with the [Hetzner Robot API](https://robot.your-server.de/doc/webservice/en.html).\n\n## Set environment variables for robot webservice credentials\n\n`hrobot-cli` use environment variables for authenticating with the Hetzner Robot. It is\nrecommended to use an env file similar to `sample.env` which can be used in the local environment as\nwell as with the docker container. The expected variables are\n* HROBOTCLI_USER\n* HROBOTCLI_PASSWORD\n\n## Build manually and run on local machine\n\nIf you have Go installed, you can build `hrobot-cli` with:\n\n    go build\n\nand run it with:\n\n    export $(cat sample.env | xargs) # or set the expected environemnt variables in any other way\n    ./hrobot-cli\n\n## Build and run in docker\n\nThe project contains a Dockerfile which will build a container with the binary by running:\n\n    docker build --rm -f \"Dockerfile\" -t hrobot-cli:latest .\n\nAfterwards you can run it with:\n\n    docker run -it --env-file=sample.env hrobot-cli:latest\n\n## Run latest version in docker using pre-built docker image\n\nRun latest version from docker registry:\n\n    docker run -it --env-file=sample.env registry.github.com/nl2go/hrobot-cli:v0-1-1\n\n## Update hrobot-go mocks\n\nThis project uses `gomock`. When the hrobot-go library is upgraded to a new version, the mocks used \nfor the tests need to be updated. This can be done by running the following command:\n\n    mockgen -package mock github.com/nl2go/hrobot-go RobotClient \u003e test/mock/mock_robot_client.go\n\n## Features \u0026 overview\n\nCurrently implemented commands are:\n\n```\nCLI application for the Hetzner Robot API - version 0.1.1\n\nUsage:\n  hrobot-cli [command]\n\nAvailable Commands:\n  help               Help about any command\n  ip:list            Print list of IP's\n  key:list           Print list of ssh keys\n  rdns:get           Print single reverse DNS entry\n  rdns:list          Print list of reverse DNS entries\n  server:ansible-inv Generates ansible inventory from server list\n  server:get         Print single server\n  server:list        Print list of servers\n  server:rescue      Activate rescue mode for single server\n  server:reset       Reset single server (hardware reset)\n  server:reverse     Revert single server order\n  server:set-name    Sets name for selected servers\n  version            Print the version number of hrobot-cli\n\nFlags:\n  -h, --help   help for hrobot-cli\n\nUse \"hrobot-cli [command] --help\" for more information about a command.\n```\n\nFor commands that are applied to a single server it is possible to select the server interactively \nby searching through the server list. For other commands (like server renaming) multiple items can\nbe selected for executing the respective command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnl2go%2Fhrobot-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnl2go%2Fhrobot-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnl2go%2Fhrobot-cli/lists"}