### Add Package via JSON Input Source: https://github.com/replit/nix-editor/blob/main/README.md Illustrates how to provide input to the Replit Nix Editor via standard input using a JSON format. This example shows adding a package named 'pkgs.cowsay' with the operation type 'add'. ```json {"op":"add", "dep": "pkgs.cowsay" } ``` -------------------------------- ### Add/Remove Packages via CLI Source: https://github.com/replit/nix-editor/blob/main/README.md Demonstrates how to use the Replit Nix Editor CLI to directly add or remove packages. Examples show adding 'pkgs.cowsay' and removing 'pkgs.cowsay' using the `--add` and `--remove` flags respectively. ```bash cargo run -- --add pkgs.cowsay cargo run -- --remove pkgs.cowsay cargo run -- --get ``` -------------------------------- ### Replit Nix Editor CLI Usage Source: https://github.com/replit/nix-editor/blob/main/README.md This snippet shows the available command-line interface options for the Replit Nix Editor. It details flags for adding or removing packages, specifying dependency types, and controlling output verbosity. ```bash nix-editor [OPTIONS] USAGE: nix-editor [OPTIONS] OPTIONS: -a, --add -d, --dep-type [default: regular] [possible values: regular, python] -h, --human --help Print help information -p, --path -r, --remove --return-output -v, --verbose -V, --version Print version information ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.