Based on the search results, here's how you generally work with Wally packages and how pesde fits into the picture:
What are Wally and Pesde?
- Wally: Wally is a popular package manager specifically designed for Roblox projects, inspired by tools like Cargo (Rust) and npm (JavaScript). It helps manage dependencies (reusable code libraries) for your Roblox game development.
- Pesde: Pesde is another package manager for the Luau programming language (used by Roblox). It supports multiple runtimes, including Roblox and Lune. Pesde has its own package registry but can also use Wally packages and Git repositories as sources for dependencies.
Standard Method: Installing Wally Packages using Wally CLI
The primary way to install Wally packages is by using the Wally command-line interface (CLI) directly:
- Install Wally: First, you need Wally installed on your system. You can install it using various methods like downloading pre-built binaries from GitHub Releases, using Homebrew (on macOS/Linux), or using a toolchain manager like Foreman or Aftman.
- Initialize your project: Navigate to your project's directory in a terminal or command prompt. If you don't have a
wally.toml file, run wally init to create one. This file defines your project and its dependencies.
- Define dependencies: Edit the
wally.toml file to list the packages you need under the [dependencies] section. For example:
[package]
name = "your_username/your_project_name"
version = "1.0.0"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared" # or "server", "client"
[dependencies]
# PackageName = "author/package-name@version"
Signal = "sleitnick/signal@^1"
TableUtil = "sleitnick/table-util@^1"
- Install packages: Run the command
wally install in your terminal within the project directory. Wally will download the specified packages and their dependencies into a Packages folder and create or update a wally.lock file.
- Sync with Rojo (if used): If you are using Rojo to sync your files into Roblox Studio, configure your
*.project.json file to include the Packages folder, typically syncing it to a location like ReplicatedStorage.
Using Pesde to Install Packages (Including Wally Packages)
Pesde acts as an alternative package manager that can also fetch packages from the Wally registry.
- Install Pesde: Download the appropriate binary from Pesde's GitHub Releases and run
pesde self-install.
- Using Pesde: While the specific commands for installing Wally packages via Pesde aren't detailed in the snippets, Pesde documentation indicates it can use Wally as a package source. You would likely define dependencies in Pesde's own configuration file (analogous to
wally.toml) and use Pesde's install command. Pesde might offer advantages like automatic type support, which sometimes requires extra tooling with Wally.
Summary:
- You don't typically use
pesde to run the wally install command.
- The standard way to install Wally packages is using the
wally install command directly after configuring your wally.toml file.
Pesde is an alternative package manager for Luau/Roblox that can fetch packages from the Wally registry in addition to its own registry. If using Pesde, you would follow Pesde's specific commands and configuration format to manage dependencies, which might include Wally packages.
Unless you have a specific reason to use Pesde, the standard approach involves using the Wally CLI (wally install) directly.