{"id":18682720,"url":"https://github.com/chneau/x","last_synced_at":"2025-10-06T11:33:58.216Z","repository":{"id":255954454,"uuid":"853966242","full_name":"chneau/x","owner":"chneau","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-28T11:51:12.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T20:19:17.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chneau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-08T03:10:29.000Z","updated_at":"2025-01-28T11:51:17.000Z","dependencies_parsed_at":"2024-09-08T04:30:29.681Z","dependency_job_id":"139e0d77-5383-4f1b-a42e-2886286d9573","html_url":"https://github.com/chneau/x","commit_stats":null,"previous_names":["chneau/x"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chneau","download_url":"https://codeload.github.com/chneau/x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533440,"owners_count":19654681,"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-07T10:12:39.430Z","updated_at":"2025-10-06T11:33:58.211Z","avatar_url":"https://github.com/chneau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x - chneau's utility CLI\n\nThis is a command-line tool for managing and deploying projects, as well as\nmaintaining the development system.\n\n## Installation\n\n```bash\nbun install -g @chneau/x\n```\n\n## Usage\n\n### `x [dir]`\n\nThe default command recursively scans a directory to perform various cleanup and\nmanagement tasks.\n\n- **Cleans up**: Removes `yarn.lock` and `package-lock.json`.\n- **Manages `package.json`**: Adds or updates scripts for upgrading, checking,\n  and linting.\n- **Manages `tsconfig.json`**: Enforces strict and efficient compiler options.\n- **Manages `.gitignore`**: Ensures `node_modules` is ignored in Bun projects.\n- **Updates dependencies**: Runs `bun upgrade` if a `package.json` is found.\n- **Checks and lints**: Runs checks and linting if a `tsconfig.json` is found.\n\n**Options:**\n\n- `-r, --recursive [number]`: Specifies the recursion level (up to 4).\n\n### `x fmt`\n\nFormats all files in the current directory using `deno fmt`, `oxlint`, `biome`,\n`go fmt`, and `dotnet csharpier`.\n\n### `x deploy [json_files...] [filters...]`\n\nDeploys applications to Kubernetes based on `.json` configuration files.\n\n- If no `.json` files are specified, it looks for `*.json` and `.deploy.json` in\n  the current directory.\n- If no configuration files are found, it creates a `.deploy.json` template.\n- You can filter which services to deploy by passing their names as arguments.\n\n### `x upgrade`\n\nUpgrades the `x` CLI to the latest version.\n\n### `x system`\n\nUpdates and installs system packages. This command requires `sudo` privileges.\n\n- Updates `apt` packages.\n- Installs or updates `brew` and essential packages.\n- Updates global `bun` packages.\n- Updates dotfiles from `github.com/chneau/dotfiles`.\n\n### `x doctor`\n\nChecks the system for common issues and provides recommendations.\n\n- Verifies that the user is not root and has `sudo` permissions.\n- Installs missing packages.\n- Configures `git`.\n- Sets up dotfiles.\n- Installs Docker and adds the user to the `docker` group.\n- Checks for SSH keys and their configuration on GitHub.\n- Configures `zsh` as the default shell.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchneau%2Fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Fx/lists"}