API Reference

lean library remove

Introduction

Remove a custom library from a project.

$ lean library remove <project> <name> [options]

Description

Removes a custom library from a project. This command can remove libraries that are added using lean library add, as well as libraries that were manually added to the C# project file or a Python project's requirements.txt file.

Custom C# libraries are removed from your C# project file (the file ending in .csproj). If dotnet is on your PATH and --no-local is not given the CLI also restores all dependencies using dotnet restore.

Custom Python libraries are removed from your project's requirements.txt file.

Arguments

The lean library remove command expects the following arguments:

ArgumentDescription
<project>The path to the project directory.
<name>For C# projects, the name of the NuGet package to remove. For Python projects, the name of the PyPI package to remove.

Options

The lean library remove command supports the following options:

OptionDescription
--no-localSkip making changes to the local environment.
--verboseEnable debug logging.
--helpDisplay the help text of the lean library remove command and exit.

You can also see our Videos. You can also get in touch with us via Chat.

Did you find this page helpful?

Contribute to the documentation: