### Yalc Installations Commands Source: https://github.com/wclr/yalc/blob/master/README.md Commands for managing Yalc installations. `yalc installations clean my-package` unpublishes a package, and `yalc installations show my-package` displays where a package is installed. ```bash yalc installations clean my-package yalc installations show my-package ``` -------------------------------- ### Yalc Publish and Push Source: https://github.com/wclr/yalc/blob/master/README.md Commands for publishing packages and pushing updates to all Yalc installations. `yalc publish --push` publishes and propagates changes. `yalc push` is a shortcut. Flags like `--changed`, `--replace`, and `--scripts` offer granular control. ```bash yalc publish --push yalc push yalc publish --push --changed yalc publish --push --replace yalc publish --push --scripts ``` -------------------------------- ### Install Yalc globally with NPM Source: https://github.com/wclr/yalc/blob/master/README.md Installs the Yalc package globally using the npm package manager. This makes the `yalc` command available system-wide for use in any project. ```bash npm i yalc -g ``` -------------------------------- ### Install Yalc globally with Yarn Source: https://github.com/wclr/yalc/blob/master/README.md Installs the Yalc package globally using the Yarn package manager. This makes the `yalc` command available system-wide for use in any project. ```bash yarn global add yalc ``` -------------------------------- ### Configure Yalc with .yalcrc Source: https://github.com/wclr/yalc/blob/master/README.md Enables setting default options for Yalc by creating or modifying a `.yalcrc` file. Examples include disabling workspace protocol resolution (`workspace-resolve=false`) or package version hash signatures (`sig=false`). ```bash workspace-resolve=false sig=false ``` -------------------------------- ### Clean Yalc Installations Source: https://github.com/wclr/yalc/blob/master/README.md Removes references to yalc'ed packages from the file system that have been deleted. This helps to eliminate warning messages generated by Yalc when it attempts to push packages to removed locations. ```bash yalc installations clean [package] ``` -------------------------------- ### Yalc with Yarn/Pnpm Workspaces Source: https://github.com/wclr/yalc/blob/master/README.md Instructions for using Yalc with Yarn/Pnpm workspaces. The `--pure` option is default, avoiding `package.json` modifications. Adding `.yalc/*` to workspaces allows automatic updates. ```bash # Add .yalc/* and .yalc/@*/* to workspaces in package.json # Example: yalc add my-package --pure # Example: yalc update --no-pure ``` -------------------------------- ### Publish package with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Publishes the current package to the local Yalc repository. It copies publishable files and can optionally run lifecycle scripts, calculate version signatures, and respect `.yalcignore` files. ```bash yalc publish ``` -------------------------------- ### Yalc Retreat and Restore Source: https://github.com/wclr/yalc/blob/master/README.md Commands to temporarily set aside or restore Yalc packages. `yalc retreat` temporarily removes packages, and `yalc restore` brings them back. ```bash yalc retreat yalc retreat --all yalc restore ``` -------------------------------- ### Yalc Git Integration Source: https://github.com/wclr/yalc/blob/master/README.md Guidance on managing Yalc files with Git. It's recommended to add `.yalc` and `yalc.lock` to `.gitignore` if used temporarily. The `yalc check` command can be used in pre-commit hooks to ensure Yalc dependencies are removed before committing. ```bash # Add to .gitignore .yalc/ yalc.lock # Pre-commit hook example (conceptual) yalc check ``` -------------------------------- ### Add package with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Adds a package from the Yalc store to the current project. It copies the package to the project's `.yalc` folder and adds a `file:.yalc/my-package` dependency to `package.json`. ```bash yalc add my-package ``` -------------------------------- ### Add package with workspace protocol with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Adds a package from the Yalc store to the current project using the 'workspace:' protocol in `package.json`. ```bash yalc add -W my-package ``` -------------------------------- ### Yalc Publish Sub-projects Source: https://github.com/wclr/yalc/blob/master/README.md Command to publish a specific sub-project within a monorepo. `yalc publish some-project` performs the publish operation in the specified sub-directory. ```bash yalc publish some-project ``` -------------------------------- ### Override Default Package Store Folder Source: https://github.com/wclr/yalc/blob/master/README.md Allows users to specify a custom directory for storing published packages instead of the default location. This is achieved using the `--store-folder` flag. ```bash yalc --store-folder ``` -------------------------------- ### Control Yalc CLI Output Source: https://github.com/wclr/yalc/blob/master/README.md Provides options to manage the verbosity and formatting of Yalc's command-line output. Use `--quiet` to suppress all output except errors, and `--no-colors` to disable colorized text. ```bash yalc --quiet ``` ```bash yalc --no-colors ``` -------------------------------- ### Yalc Link Command Source: https://github.com/wclr/yalc/blob/master/README.md The `link` command in Yalc is similar to `npm/yarn link`. It creates a symlink from the project's local `.yalc` folder to the `node_modules` directory, without modifying `package.json`. ```bash yalc link my-package ``` -------------------------------- ### Add package as link dependency with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Adds a package from the Yalc store to the current project as a linked dependency, similar to `npm/yarn link`, without modifying `package.json` directly. ```bash yalc add --link my-package ``` -------------------------------- ### Yalc Update Commands Source: https://github.com/wclr/yalc/blob/master/README.md Commands to update packages managed by Yalc. `yalc update my-package` updates a specific package, while `yalc update` updates all packages listed in `yalc.lock`. The `--update` flag can trigger package manager updates. ```bash yalc update my-package yalc update yalc update --update ``` -------------------------------- ### Add package as dev dependency with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Adds a package from the Yalc store to the current project's development dependencies. ```bash yalc add --dev my-package ``` -------------------------------- ### Yalc Remove Commands Source: https://github.com/wclr/yalc/blob/master/README.md Commands to remove packages managed by Yalc. `yalc remove my-package` removes package info from `package.json` and `yalc.lock`. `yalc remove --all` removes all packages from the project. ```bash yalc remove my-package yalc remove --all ``` -------------------------------- ### Add specific version with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Adds a specific version of a package from the Yalc store to the current project. This version will be fixed in `yalc.lock`. ```bash yalc add my-package@version ``` -------------------------------- ### Add package without modifying package.json with Yalc Source: https://github.com/wclr/yalc/blob/master/README.md Adds a package from the Yalc store to the current project without touching the `package.json` file or the modules folder. This is useful for workflows with Yarn workspaces. ```bash yalc add --pure my-package ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.