### Installing OSRS CLI from Source (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/install.md This command uses Cargo to build and install the osrs-cli directly from the current directory, assuming it contains the cloned source code. This method is typically used for installing unreleased versions or for development purposes. A working Rust toolchain is required. ```sh cargo install --path . ``` -------------------------------- ### Getting Help with osrs-cli Commands (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Learn how to get detailed usage information and available arguments for the main command and its subcommands using the `--help` flag. This provides a quick reference for command syntax and options. ```Shell osrs --help osrs calc --help osrs calc drop --help ``` -------------------------------- ### Installing OSRS CLI from crates.io (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/install.md This command uses the Rust package manager, Cargo, to download and install the latest version of the osrs-cli crate from crates.io. A working Rust toolchain is required for this method. The command automatically places the executable in your system's PATH. ```sh cargo install osrs-cli ``` -------------------------------- ### Setting Up and Running Website Development Environment Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md These commands navigate to the website directory, install dependencies using npm, and start the local development server. ```Shell cd website npm install npm run start ``` -------------------------------- ### Manage OSRS CLI Configuration - Shell Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Demonstrates how to use the `osrs config` subcommand family to manage persistent configuration settings for the OSRS CLI. Examples include retrieving the entire configuration, getting a specific field, and setting a specific field's value. ```sh osrs config get # Get the entire config osrs config get default_player # Get the default_player field osrs config set default_player Lynx Titan # Set the default_player ``` -------------------------------- ### Calculating XP Needed from Level to Level with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the amount of XP required to reach a target level starting from a specific level. Uses the `--from-lvl` flag for the starting level and `--to-lvl` for the target level. ```Shell $ osrs calc xp --from-lvl 50 --to-lvl 60 ``` -------------------------------- ### Calculating XP to a Level with osrs-cli Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md These commands calculate the amount of experience needed to reach a target level from either a starting experience value or a starting level. ```Shell osrs calc xp --from-xp 100000 --to-lvl 80 osrs calc xp --from-lvl 50 --to-lvl 60 ``` -------------------------------- ### Calculating XP Needed from XP to Level with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the amount of XP required to reach a target level starting from a specific XP value. Uses the `--from-xp` flag for the starting XP and `--to-lvl` for the target level. ```Shell $ osrs calc xp --from-xp 100000 --to-lvl 80 ``` -------------------------------- ### Calculating Target Level from Level plus XP with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the resulting level after gaining a specific amount of XP starting from a given level. Uses the `--from-lvl` flag for the starting level and `--plus-xp` for the amount of XP to add. ```Shell $ osrs calc xp --from-lvl 1 --plus-xp 13750 ``` -------------------------------- ### Searching the OSRS Wiki with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Allows searching the Old School RuneScape Wiki directly from the command line. Simply use the `osrs wiki` command followed by the search term to find relevant wiki pages. ```Shell osrs wiki shark osrs wiki one small favour ``` -------------------------------- ### Looking Up Grand Exchange Prices with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Shows how to find the current Grand Exchange price for an item using the `osrs price` command or its alias `osrs ge`. Simply provide the item name as an argument to get a list of matching items and their prices. ```Shell $ osrs price bandos godsword ``` -------------------------------- ### Calculating Spicy Stew Boost Probabilities with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the probabilities of achieving different skill boosts from spicy stews based on the number of spice doses used. Helps determine the optimal number of doses for a desired boost using `--doses` and `--boost` flags. ```Shell > osrs calc stew --doses 25 --boost 3 ``` -------------------------------- ### Calculating Basic Drop Rate Probability with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the probability of getting at least one success within a given number of attempts, based on a specified drop rate. Uses the `-p` flag for the probability (e.g., 1/5000) and `-n` for the number of attempts. ```Shell $ osrs calc drop -p 1/5000 -n 1000 ``` -------------------------------- ### Calculating XP Needed from Player Skill to XP with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the amount of XP required to reach a target XP value starting from a player's current XP in a specific skill, fetched automatically from the hiscores. Uses `--player`, `--skill`, and `--to-xp` flags. ```Shell $ osrs calc xp --player swampletics --skill smithing --to-xp 12345678 ``` -------------------------------- ### Looking Up Player Hiscores with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Demonstrates how to look up a player's skills and minigame stats using the `osrs hiscore` command followed by the player's username. The output displays detailed statistics including rank, level/score, and XP. ```Shell > osrs hiscore Swampletics ``` -------------------------------- ### Calculating Drop Rate Probability for Multiple Successes with osrs-cli (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates the probability of achieving a target number of successes (or more) within a set number of attempts. Uses the `-t` flag to specify the target number of successes (e.g., 4+). ```Shell $ osrs calc drop -p 1/12 -n 40 -t 4+ ``` -------------------------------- ### Ping OSRS World - CLI Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Pings a specific Old School RuneScape world to check its latency. Requires the world number as an argument. This functionality is noted as not being available in the web version due to browser limitations. ```shell osrs ping 450 ``` -------------------------------- ### Calculating Drop Rate Probability with Multiple Rolls per Attempt (Shell) Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Calculates drop rate probability considering multiple loot table rolls per attempt, which is common for some bosses. Uses the `--rolls` flag to specify the number of rolls per attempt and `--kc` for kill count. ```Shell $ osrs calc drop -p 1/1000 --rolls 2 --kc 221 -t 4+ ``` -------------------------------- ### Set Default Player Username - CLI Source: https://github.com/lucaspickering/osrs-cli/blob/master/website/src/guide.md Sets the default player username in the OSRS CLI configuration. Storing a default username allows subsequent commands that require a player name (like `osrs hiscore` or `osrs calc xp`) to be executed without explicitly providing the username as an argument. ```shell osrs config set default_player ``` -------------------------------- ### Running Rust CLI Development Commands Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md These commands show how to run the osrs-cli from source during development using Cargo and execute the unit tests. ```Shell cargo run -- help # Run any command cargo test # Run unit tests ``` -------------------------------- ### Calculating Spicy Stew Boost Probabilities with osrs-cli Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md This command calculates the probabilities of achieving different boost levels from a specified number of spicy stew doses with a given base boost value. ```Shell > osrs calc stew --doses 25 --boost 3 ``` -------------------------------- ### Searching the Wiki with osrs-cli Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md These commands use the osrs-cli tool to perform searches on the Oldschool RuneScape wiki for specified terms. ```Shell osrs wiki shark osrs wiki smithing ``` -------------------------------- ### Pinging a World with osrs-cli Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md This command pings a specific Oldschool RuneScape game world to check its connectivity and latency. ```Shell osrs ping 450 ``` -------------------------------- ### Calculating Drop Rate Probability with osrs-cli Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md This command calculates the probability of achieving at least one success within a given number of attempts, based on a specified drop rate probability. ```Shell > osrs calc drop --probability 1/5000 --kills 1000 ``` -------------------------------- ### Performing Hiscore Lookup with osrs-cli Source: https://github.com/lucaspickering/osrs-cli/blob/master/README.md This command performs a hiscore lookup for a specified Oldschool RuneScape username using the osrs-cli tool. ```Shell osrs hiscore ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.