API Reference

lean library remove

Introduction

Remove a custom library from a project.

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

Description

Removes a 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.

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.

Third-party Python libraries are removed from your project's requirements.txt file.

Project libraries are removed from your project configuration file.

Arguments

The lean library remove command expects the following arguments:

ArgumentDescription
<project>The path to the project directory.
<name>For third-party C# libraries, the name of the NuGet package to remove. For third-party Python libraries, the name of the PyPI package to remove. For project libraries, the path to the library in the Library directory of your organization workspace.

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 Discord.

Did you find this page helpful?

Contribute to the documentation: