### Configure Custom Installation Options Source: https://context7.com/xentixar/bkt-builds/llms.txt Customizing the installation process using environment variables. Allows users to specify custom install directories, binary names, and alternative release sources. ```bash export BKT_INSTALL_DIR="/usr/local/bin" export BKT_BIN_NAME="bitbucket" export BKT_RELEASE_REPO="yourorg/bkt-builds" export GH_API_BASE="https://github.yourcompany.com/api/v3" /bin/bash -c "$(curl -fsSL https://xentixar.github.io/bkt-builds/install/linux)" ``` -------------------------------- ### Install bkt CLI on macOS and Linux Source: https://context7.com/xentixar/bkt-builds/llms.txt One-line installation scripts for Unix-based systems. These commands download the appropriate binary for the system architecture and install it to the local bin directory. ```bash /bin/bash -c "$(curl -fsSL https://xentixar.github.io/bkt-builds/install/mac)" ``` ```bash /bin/bash -c "$(curl -fsSL https://xentixar.github.io/bkt-builds/install/linux)" ``` -------------------------------- ### Install bkt on Linux Source: https://github.com/xentixar/bkt-builds/blob/gh-pages/index.html Installs 'bkt' to ~/.local/bin on Linux systems. This command fetches and runs an installation script via curl and bash. Requires curl and an active internet connection. ```bash /bin/bash -c "$(curl -fsSL https://xentixar.github.io/bkt-builds/install/linux)" ``` -------------------------------- ### Verify bkt installation and login Source: https://github.com/xentixar/bkt-builds/blob/gh-pages/index.html Commands to check the installed 'bkt' version and log in using an application password. The `bkt version` command verifies the installation, while `bkt auth login --app-password` initiates the authentication process. ```bash bkt version ``` ```bash bkt auth login --app-password ``` -------------------------------- ### Install bkt on Mac Source: https://github.com/xentixar/bkt-builds/blob/gh-pages/index.html Installs 'bkt' to ~/.local/bin on macOS. This command downloads and executes an installation script using curl and bash. Ensure you have curl installed and internet connectivity. ```bash /bin/bash -c "$(curl -fsSL https://xentixar.github.io/bkt-builds/install/mac)" ``` -------------------------------- ### Install bkt CLI on Windows Source: https://context7.com/xentixar/bkt-builds/llms.txt PowerShell command to install the bkt binary on Windows. Includes an optional step to set the execution policy if script execution is blocked. ```powershell Set-ExecutionPolicy -Scope CurrentUser RemoteSigned irm https://xentixar.github.io/bkt-builds/install/windows.ps1 | iex ``` -------------------------------- ### Install bkt on Windows Source: https://github.com/xentixar/bkt-builds/blob/gh-pages/index.html Installs 'bkt' to %USERPROFILE%\.local\bin on Windows using PowerShell. This command downloads and executes a PowerShell script. Users may need to adjust their execution policy. ```powershell irm https://xentixar.github.io/bkt-builds/install/windows.ps1 | iex ``` ```powershell Set-ExecutionPolicy -Scope CurrentUser RemoteSigned ``` -------------------------------- ### Manage OS-specific UI tabs and clipboard copy Source: https://github.com/xentixar/bkt-builds/blob/gh-pages/index.html A JavaScript utility that toggles visibility of installation panels based on the user's operating system and provides clipboard copy functionality for code blocks. It detects the user agent to default to the correct OS tab on page load. ```javascript (function () { var tabs = document.querySelectorAll(".tab"); var panels = { mac: document.getElementById("panel-mac"), linux: document.getElementById("panel-linux"), win: document.getElementById("panel-win"), }; function show(os) { Object.keys(panels).forEach(function (k) { var id = k === "win" ? "win" : k; var p = panels[k]; if (!p) return; if ((os === "mac" && k === "mac") || (os === "linux" && k === "linux") || (os === "win" && k === "win")) { p.classList.remove("hidden"); } else { p.classList.add("hidden"); } }); tabs.forEach(function (t) { var d = t.getAttribute("data-os"); var on = (os === "win" && d === "win") || (os === d); t.classList.toggle("active", on); t.setAttribute("aria-selected", on ? "true" : "false"); }); } tabs.forEach(function (t) { t.addEventListener("click", function () { show(t.getAttribute("data-os")); }); }); document.querySelectorAll(".copy").forEach(function (btn) { btn.addEventListener("click", function () { var id = btn.getAttribute("data-target"); var el = document.getElementById(id); var text = el ? el.textContent.trim() : ""; navigator.clipboard.writeText(text).then(function () { var old = btn.textContent; btn.textContent = "Copied!"; btn.classList.add("copied"); setTimeout(function () { btn.textContent = old; btn.classList.remove("copied"); }, 2000); }); }); }); var ua = navigator.userAgent || ""; if (/Windows/i.test(ua)) show("win"); else if (/Mac|iPhone|iPad/i.test(ua)) show("mac"); else show("linux"); })(); ``` -------------------------------- ### Authenticate with Bitbucket OAuth in bkt-builds Source: https://github.com/xentixar/bkt-builds/blob/gh-pages/index.html Demonstrates how to authenticate the bkt CLI tool using OAuth credentials. Users can provide credentials via command-line flags or environment variables. ```bash # with flags bkt auth login --client-id "$BKT_CLIENT_ID" --client-secret "$BKT_CLIENT_SECRET" # or via env vars export BKT_CLIENT_ID="..." export BKT_CLIENT_SECRET="..." bkt auth login ``` -------------------------------- ### Authenticate with Bitbucket Source: https://context7.com/xentixar/bkt-builds/llms.txt Methods for authenticating the bkt CLI. Supports interactive API token login and OAuth consumer authentication via flags or environment variables. ```bash # API Token Authentication bkt auth login --app-password # OAuth Authentication via flags bkt auth login --client-id "$BKT_CLIENT_ID" --client-secret "$BKT_CLIENT_SECRET" # OAuth Authentication via environment variables export BKT_CLIENT_ID="your-oauth-client-id" export BKT_CLIENT_SECRET="your-oauth-client-secret" bkt auth login ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.