{"id":26404130,"url":"https://github.com/whiteducksoftware/azctx","last_synced_at":"2025-03-17T16:20:35.779Z","repository":{"id":187229185,"uuid":"654613338","full_name":"whiteducksoftware/azctx","owner":"whiteducksoftware","description":"Faster switching between Azure Subscriptions in your Azure CLI","archived":false,"fork":false,"pushed_at":"2025-03-17T12:07:45.000Z","size":4820,"stargazers_count":21,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-17T13:27:36.062Z","etag":null,"topics":["azure","cli"],"latest_commit_sha":null,"homepage":"","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/whiteducksoftware.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":"2023-06-16T14:12:55.000Z","updated_at":"2025-03-17T12:07:42.000Z","dependencies_parsed_at":"2023-11-09T12:59:55.574Z","dependency_job_id":"8d1b0e3e-c79e-4098-a3cc-8f17c9971b33","html_url":"https://github.com/whiteducksoftware/azctx","commit_stats":null,"previous_names":["whiteducksoftware/azctx"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteducksoftware%2Fazctx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteducksoftware%2Fazctx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteducksoftware%2Fazctx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteducksoftware%2Fazctx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whiteducksoftware","download_url":"https://codeload.github.com/whiteducksoftware/azctx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066191,"owners_count":20392407,"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":["azure","cli"],"created_at":"2025-03-17T16:20:35.153Z","updated_at":"2025-03-17T16:20:35.767Z","avatar_url":"https://github.com/whiteducksoftware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src='assets/img/DB-WD-Iconsazctx-1200px.png' height=40\u003e \u0026nbsp; `azctx`: Power tool for the Azure CLI \n\n![azctx promo](assets/img/DB-WD-azctx-TW-440x220px@2x.png)\n\n![Proudly written in Go](https://img.shields.io/badge/written%20in-go-29BEB0.svg)\n![Latest GitHub release](https://img.shields.io/github/v/release/whiteducksoftware/azctx.svg)\n![GitHub stars](https://img.shields.io/github/stars/whiteducksoftware/azctx.svg?label=github%20stars)\n![GitHub contributors](https://img.shields.io/github/contributors/whiteducksoftware/azctx.svg?label=github%20contributors)\n\n**`azctx`** helps you switch between azure cli subscriptions back and forth:\n\n![azctx demo GIF](assets/img/azctx-demo.png)\n\n## Collaborate with us 👋\n\n* Feel free to give us your **feedback**, make **suggestions** or let us discuss in our 📢 [**discussions tab**](../../discussions/).\n* To report **issues** or search for existing issues go to the 🔎 [**issues tab**](../../issues/).\n\n_And please star this repo ⭐_\n\n## azctx\n\n```bash\nazctx is a CLI tool for managing azure cli subscriptions.\n        It is a helper for the azure cli and provides a simple interface for managing subscriptions.\n        Pass a subscription name to select a specific subscription.\n        Pass - to switch to the previous subscription.\n\nUsage:\n  azctx [- / -- NAME] [flags]\n  azctx [command]\n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  help        Help about any command\n  login       Login to Azure\n  version     Print the CLI version\n\nFlags:\n  -c, --current               Display the current active subscription\n      --filter-tenant-level   Filter tenant level accounts with no available subscriptions (default true)\n  -h, --help                  help for azctx\n  -s, --short                 Use a short prompt.\n                                Deprecated. Size is now automatically determined.\n\nUse \"azctx [command] --help\" for more information about a command.\n```\n\n```bash\nLogin to Azure (wrapped around 'az login')\n        Authenticates the CLI instance to Azure and fetches all available tenants and subscriptions.\n        All args after -- are directly passed to the 'az login' command.\n\nUsage:\n  azctx login [flags]\n\nFlags:\n      --force-mfa   force individual authentication for each tenant separately (required for tenants which enforce explicit MFA)\n  -h, --help        help for login\n```\n\n-----\n\n## Installation\n\n### Homebrew (macOS)\n\n* Install `azctx` with `brew install whiteducksoftware/tap/azctx`\n\n### Chocolatey (Windows)\n\n* Install `azctx` with `choco install azctx`\n\n### Binary (Windows, Linux, macOS)\n\n* Install the `azctx` binary from the [repository](https://github.com/whiteducksoftware/azctx/releases)\n* Add the `azctx` binary to your PATH\n\n-----\n\n## Troubleshooting\n\n### Error: `AZURE_CONFIG_DIR is not set / a valid directory. [...]`\n\nRun `az configure` once to create the configuration directory.\n\nCheck the [Microsoft Documentation](https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest#cli-configuration-file) for the correct path to the azure cli config directory and export it as AZURE_CONFIG_DIR environment variable.  \n\n```bash\nexport AZURE_CONFIG_DIR=$HOME/.azure\n```\n\n-----\n\n## Migrate from stiviik/azctx\n\nAre you an existing user of `stiviik/azctx`? Use the following commands to migrate from the old `stiviik/azctx` to the new `whiteducksoftware/azctx` repository:\n\n```bash\nbrew uninstall azctx\nbrew untap stiviik/tap\nbrew install whiteducksoftware/tap/azctx\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhiteducksoftware%2Fazctx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhiteducksoftware%2Fazctx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhiteducksoftware%2Fazctx/lists"}