{"id":21919836,"url":"https://github.com/kernelci/kernelci-admin","last_synced_at":"2025-03-22T10:20:08.207Z","repository":{"id":68716782,"uuid":"132725417","full_name":"kernelci/kernelci-admin","owner":"kernelci","description":"KernelCI admin tools","archived":false,"fork":false,"pushed_at":"2019-04-18T15:50:56.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-27T10:11:31.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernelci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2018-05-09T08:23:23.000Z","updated_at":"2019-06-11T12:10:28.000Z","dependencies_parsed_at":"2023-02-28T23:46:19.108Z","dependency_job_id":null,"html_url":"https://github.com/kernelci/kernelci-admin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkernelci-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkernelci-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkernelci-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkernelci-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelci","download_url":"https://codeload.github.com/kernelci/kernelci-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244938711,"owners_count":20535288,"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":[],"created_at":"2024-11-28T20:11:18.208Z","updated_at":"2025-03-22T10:20:08.187Z","avatar_url":"https://github.com/kernelci.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KernelCI Admin Tools\n\nThis Python 3 tool can be used to perform various KernelCI admin operations,\nsuch as managing API tokens.\n\n## Settings\n\nA `_settings.py` module needs to be created with settings for various hosts\nrunning KernelCI back-end or front-end instances.  You can copy\n`_sample_settings.py` as `_settings.py` and adjust it as required.\n\n## Usage\n\nThe `kci` tool has a number of available commands to perform various operations\nwith a KernelCI backend API.  It provides a help message with the list of all\nthese commands when simply running `kci`:\n\n```\nUsage:\n  kci COMMAND \u003cOPTIONS\u003e\n\nTo get command-specific command help:\n\n  kci COMMAND --help\n\nAvailable commands:\n  add_lab          Create a lab entry\n  list_labs        List all the existing labs\n  remove_lab       Remove lab entry\n  add_token        Create a user API token\n  list_tokens      List all the existing tokens\n  remove_token     Remove user API token\n```\n\nEach command will also require some options.  Typically, commands need at least\na `--host=HOSTNAME` option to specify which KernelCI API you want to be\ninteracting with.  The name passed to the `--host` option is used to look up\ninformation in the `_settings.py` module.\n\nTo get detailed help for any command, use the `--help` option:\n\n```\n$ ./kci add_lab --help\nusage: kci [-h] --host {localhost} [--dry] --lab-name LAB_NAME --first-name\n           FIRST_NAME --last-name LAST_NAME --email EMAIL\n\nCreate a lab entry\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --host {localhost}    Hostname of the API server\n  --dry                 Dry run, do not send any request\n  --lab-name LAB_NAME   Name of the lab i.e. lab-something\n  --first-name FIRST_NAME\n                        First name of the contact person\n  --last-name LAST_NAME\n                        Last name of the contact person\n  --email EMAIL         Email address of the contact person\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Fkernelci-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelci%2Fkernelci-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Fkernelci-admin/lists"}