{"id":14117041,"url":"https://github.com/mirceanton/talswitcher","last_synced_at":"2026-02-04T19:01:13.471Z","repository":{"id":252823283,"uuid":"841027584","full_name":"mirceanton/talswitcher","owner":"mirceanton","description":"A simple tool to help manage multiple talosconfig files","archived":false,"fork":false,"pushed_at":"2026-01-30T16:11:50.000Z","size":655,"stargazers_count":19,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T03:58:44.085Z","etag":null,"topics":["cli","cli-app","helper-tool","talos","talos-linux","talosctl"],"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/mirceanton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":".github/Code_of_Conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["mircea-pavel-anton"]}},"created_at":"2024-08-11T12:31:18.000Z","updated_at":"2026-01-28T14:15:48.000Z","dependencies_parsed_at":"2025-12-15T23:00:50.454Z","dependency_job_id":null,"html_url":"https://github.com/mirceanton/talswitcher","commit_stats":null,"previous_names":["mirceanton/talswitcher"],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/mirceanton/talswitcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceanton%2Ftalswitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceanton%2Ftalswitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceanton%2Ftalswitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceanton%2Ftalswitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirceanton","download_url":"https://codeload.github.com/mirceanton/talswitcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceanton%2Ftalswitcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29092984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-app","helper-tool","talos","talos-linux","talosctl"],"created_at":"2024-08-14T18:00:38.413Z","updated_at":"2026-02-04T19:01:13.435Z","avatar_url":"https://github.com/mirceanton.png","language":"Go","funding_links":["https://github.com/sponsors/mircea-pavel-anton"],"categories":["Table of Contents"],"sub_categories":[],"readme":"# talswitcher\n\n`talswitcher` is a command-line tool for managing and switching between different Talos contexts. It simplifies the process of selecting a Talos context from multiple talosconfig files and updates the active configuration.\n\nJust dump all your `talosconfig` into a single dir and let `talswitcher` manage them for you!\n\n## Features\n\n- **Multiple talosconfig files**: Manage multiple talosconfig files in a single directory without merging them\n- **Context switching**: Switch between contexts from multiple config files\n- **Interactive \u0026 non-interactive modes**: Select from a list or specify directly as an argument (with tab completion support!)\n\n## Installation\n\n### Download Precompiled Binaries\n\nPrecompiled binaries are available for various platforms. You can download the latest release from the [GitHub Releases page](https://github.com/mirceanton/talswitcher/releases/latest).\n\n1. Download the appropriate binary for your system and extract the archive.\n2. Make the extracted binary executable:\n\n   ```bash\n   chmod +x talswitcher\n   ```\n\n3. Move the binary to a directory in your PATH:\n\n   ```bash\n   mv talswitcher /usr/local/bin/\n   ```\n\n### Running via Docker\n\n`talswitcher` is also available as a Docker container:\n\n```bash\ndocker pull ghcr.io/mirceanton/talswitcher\n```\n\n### Install via homebrew\n\n1. Add the tap\n\n   ```bash\n   brew tap mirceanton/taps\n   ```\n\n2. Install `talswitcher`\n\n   ```bash\n   brew install talswitcher\n   ```\n\n### Install via `go install`\n\n```bash\ngo install github.com/mirceanton/talswitcher@main\n```\n\n### Build from Source\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/mirceanton/talswitcher\n   cd talswitcher\n   ```\n\n2. Build the tool:\n\n   ```bash\n   go build -o talswitcher\n   ```\n\n## Usage\n\n`talswitcher` has two main subcommands:\n\n### Context Subcommand\n\nThe `context` (or `ctx`) subcommand is used to switch between Talos contexts:\n\n```bash\n# Interactive mode\ntalswitcher context\n\n# Switch to a specific context\ntalswitcher ctx my-context\n\n# Switch to previous context\ntalswitcher context -\n```\n\n### Shell Completions\n\nThe `completion` subcommand generates shell completion scripts:\n\n```bash\n# Generate completions for bash\ntalswitcher completion bash \u003e /etc/bash_completion.d/talswitcher\n\n# Generate completions for zsh\ntalswitcher completion zsh \u003e ~/.zsh/completion/_talswitcher\n\n# Generate completions for fish\ntalswitcher completion fish \u003e ~/.config/fish/completions/talswitcher.fish\n\n# Generate completions for powershell\ntalswitcher completion powershell \u003e ~/talswitcher.ps1\n```\n\n## Configuration\n\nYou can configure `talswitcher` using environment variables or CLI flags. The following table outlines the available options:\n\n| Option                | Flag                | Environment Variable | Default             | Description                                                       |\n| --------------------- | ------------------- | -------------------- | ------------------- | ----------------------------------------------------------------- |\n| Talosconfig Directory | `--talosconfig-dir` | `TALOSCONFIG_DIR`    | `~/.talos/configs/` | Directory containing your talosconfig files                       |\n| Talosconfig           | `--talosconfig`     | `TALOSCONFIG`        | `~/.talos/config`   | Path to the currently active talosconfig file.                    |\n| Log Level             | `--log-level`       | `LOG_LEVEL`          | `info`              | Logging verbosity (trace, debug, info, warn, error, fatal, panic) |\n| Log Format            | `--log-format`      | `LOG_FORMAT`         | `text`              | Log output format (text, json)                                    |\n\nWhen both the environment variable and CLI flag are set, the CLI flag takes precedence.\n\n## Contributing\n\nContributions are welcome! Please fork the repository, make your changes, and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirceanton%2Ftalswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirceanton%2Ftalswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirceanton%2Ftalswitcher/lists"}