{"id":17720363,"url":"https://github.com/gcarrarom/kubeconfig-cleaner-cli","last_synced_at":"2026-05-01T19:02:57.966Z","repository":{"id":91373792,"uuid":"184757796","full_name":"gcarrarom/kubeconfig-cleaner-cli","owner":"gcarrarom","description":"☸️ kcleaner - a tool for your Kube config files","archived":false,"fork":false,"pushed_at":"2021-05-13T15:08:31.000Z","size":977,"stargazers_count":31,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-28T10:31:42.153Z","etag":null,"topics":["cli","cli-tool","configuration-management","demo","k8s","kubernetes","pypi-test","python","python3"],"latest_commit_sha":null,"homepage":"https://fancywhale.ca","language":"Python","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/gcarrarom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-03T13:13:20.000Z","updated_at":"2022-03-29T19:52:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"77b6658a-1553-4302-ae1d-3f3da757c867","html_url":"https://github.com/gcarrarom/kubeconfig-cleaner-cli","commit_stats":null,"previous_names":[],"tags_count":13,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarrarom%2Fkubeconfig-cleaner-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarrarom%2Fkubeconfig-cleaner-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarrarom%2Fkubeconfig-cleaner-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarrarom%2Fkubeconfig-cleaner-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcarrarom","download_url":"https://codeload.github.com/gcarrarom/kubeconfig-cleaner-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526431,"owners_count":20305108,"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":["cli","cli-tool","configuration-management","demo","k8s","kubernetes","pypi-test","python","python3"],"created_at":"2024-10-25T15:26:43.898Z","updated_at":"2026-05-01T19:02:57.952Z","avatar_url":"https://github.com/gcarrarom.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![GitHub release](https://img.shields.io/github/release/gcarrarom/kubeconfig-cleaner-cli.svg)\n[![codecov](https://codecov.io/gh/gcarrarom/kubeconfig-cleaner-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/gcarrarom/kubeconfig-cleaner-cli)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/kcleaner) \n# Table of contents\n- [Table of contents](#table-of-contents)\n- [Demo](#demo)\n- [Usage](#usage)\n- [Installation](#installation)\n\n\n# Demo\nI want to clean my Kube config file without having to open my config file ever again :)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/gcarrarom/kubeconfig-cleaner-cli/raw/master/render1557878856917.gif\"\u003e\n\u003c/p\u003e\n\n\n# Usage\n\nTo use this CLI simply type:\n`kcleaner`\nThis will prompt you to remove the context by using Fuzzy Search.\nIf you want to clean another Kube config file, you should use the option `-k` or `--kube-config` with the path for your config file.\nIf you want to remove clusters, you can too! Just call `kcleaner clusters` and voilá!\nWhat about users? Sure can! `kcleaner users` is here to help!\nTo select more than one entry, just press tab. All the selected entries will be removed!\n\nIf you know the name of the config entry you're going to remove, you can always use the `-n` or `--name` option to remove it.\n\nHere's the output of the help command `kcleaner --help`:\n```\nUsage: kcleaner.py [OPTIONS] [[users|clusters|contexts|token]]\n\n  A little CLI tool to help keeping Config Files clean :)\n\nOptions:\n  -k, --kubeconfig TEXT  path to the config file to clean\n  -n, --name TEXT        Name of the entry to remove\n  -u, --undo             Use this to roll back latest changes\n  -d, --debug            Use this to see debug level messages\n  --help                 Show this message and exit.\n```\n\n# Installation\n\nTo install using pip, simply run this command:\n\n`pip install kcleaner`\n\n## Requirements\nPython 3.x\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarrarom%2Fkubeconfig-cleaner-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcarrarom%2Fkubeconfig-cleaner-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarrarom%2Fkubeconfig-cleaner-cli/lists"}