### Install Bullpen CLI with npm Source: https://github.com/bullpenfi/bullpen-cli-releases/blob/main/README.md Install the Bullpen CLI globally using npm. This method requires Node.js and npm to be installed. ```bash # npm npm install -g @bullpenfi/cli ``` -------------------------------- ### Run Bullpen CLI Source: https://github.com/bullpenfi/bullpen-cli-releases/blob/main/README.md Execute the Bullpen CLI after installation. This command typically starts the CLI interface or its default action. ```bash bullpen ``` -------------------------------- ### Install Bullpen CLI with curl Source: https://github.com/bullpenfi/bullpen-cli-releases/blob/main/README.md Install the Bullpen CLI using a curl script. This method downloads and executes an installation script directly. ```bash # curl curl -fsSL https://bullpenfi.github.io/bullpen-cli/install.sh | sh ``` -------------------------------- ### Install AI Skills Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Install or update AI skills for use with the Bullpen CLI. Remember to restart your AI environment afterwards. ```bash bullpen skill install ``` -------------------------------- ### Verify Bullpen CLI Installation Source: https://github.com/bullpenfi/bullpen-cli-releases/blob/main/README.md Verify that the Bullpen CLI has been installed correctly by checking its version. This command should output the installed version number. ```bash bullpen --version ``` -------------------------------- ### Install Bullpen CLI with Homebrew Source: https://github.com/bullpenfi/bullpen-cli-releases/blob/main/README.md Install the Bullpen CLI on macOS or Linux using the Homebrew package manager. Ensure Homebrew is installed first. ```bash # Homebrew (macOS / Linux) brew install BullpenFi/tap/bullpen ``` -------------------------------- ### Update Bullpen CLI Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Run this command to update the Bullpen CLI to the latest version. If you installed via Homebrew, use the alternative command. ```bash bullpen upgrade ``` ```bash brew upgrade bullpen ``` -------------------------------- ### Basic Polymarket V2 Trading Commands Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Execute common trading actions on Polymarket V2 using the Bullpen CLI. These commands maintain the same syntax as before. ```bash # Buy shares bullpen polymarket buy Yes 10 --yes # Sell shares bullpen polymarket sell Yes 10 --yes # Limit orders bullpen polymarket limit-buy --price 0.40 --shares 25 Yes --yes # Check positions bullpen polymarket positions # Cancel orders bullpen polymarket orders --cancel-all --yes ``` -------------------------------- ### Check Polymarket Balances Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Perform a preflight check to view your pUSD and other balances. This command also indicates if wrapping is needed. ```bash bullpen polymarket preflight ``` -------------------------------- ### Re-Login to Bullpen CLI Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Refresh your session by logging in again. This is required for V2 compatibility. ```bash bullpen login ``` -------------------------------- ### Wrap USDC.e for Insufficient pUSD Balance Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Execute this command to wrap more USDC.e if you have an insufficient pUSD balance. The `--yes` flag bypasses confirmation prompts. ```bash bullpen polymarket wrap --yes ``` -------------------------------- ### Verify Bullpen CLI Version Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Check if your Bullpen CLI version is v0.1.69 or higher after updating. ```bash bullpen --version # Expected: bullpen 0.1.69 (Alpha) ``` -------------------------------- ### Search for Polymarket Market Slug Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Use this command to find the correct slug for a market if the slug has changed after the cutover. Replace `` with your search term. ```bash bullpen polymarket search ``` -------------------------------- ### Set V2 Approvals Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Approve the new V2 exchange contracts for trading. This is a one-time, gasless operation. ```bash bullpen polymarket approve --yes ``` -------------------------------- ### Check Bullpen CLI Status Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Verify that you are logged in and your JWT is valid after re-logging in. ```bash bullpen status # Should show: Logged in, JWT valid ``` -------------------------------- ### Wrap USDC.e to pUSD Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Convert your USDC.e to pUSD, the new trading collateral for Polymarket V2. Replace with the desired quantity. This operation is gasless. ```bash bullpen polymarket wrap --yes ``` ```bash bullpen polymarket wrap 100 --yes ``` -------------------------------- ### Redeem Old Positions Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Redeem positions opened before the V2 upgrade. The CLI automatically handles the conversion to pUSD. ```bash bullpen polymarket redeem --yes ``` -------------------------------- ### Check V2 Approval Status Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Query the current approval status for the V2 exchange contracts. ```bash bullpen polymarket approve --check ``` -------------------------------- ### Unwrap pUSD to USDC Source: https://github.com/bullpenfi/bullpen-cli-releases/wiki/Bullpen-CLI-v0.1.69-—-Polymarket-V2-Upgrade-Guide Convert your pUSD back to USDC when you wish to withdraw funds. Replace with the desired quantity. ```bash bullpen polymarket unwrap --yes ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.