FileInformation.Cli
0.0.4
dotnet tool install --global FileInformation.Cli --version 0.0.4
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local FileInformation.Cli --version 0.0.4
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FileInformation.Cli&version=0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package FileInformation.Cli --version 0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Overview
A CLI tool to get different types of information about the files and directories. It's in an experimental stage, so things might not work as expected and the API may change with each minor version upgrade.
Build and Run
cd /repo/folder
dotnet build
dotnet run --project .\FileInformation\FileInformation.Cli.csproj
Publish AOT
cd /repo/folder
dotnet publish -c Release
Install
It's only published to NuGet so far, so you can install it using the following command.
I'm planning to publish it to Snap and Homebrew in the future + add an install.sh
script to make it easier to install.
On Linux
dotnet tool install --global fileinformation.cli
Make sure you follow any additional directions printed to the screen. You may need to update your PATH variable in order to use .NET global tools.
On Windows
dotnet tool install --global fileinformation.cli
On Mac
dotnet tool install --global fileinformation.cli
Make sure you follow any additional directions printed to the screen. You may need to update your PATH variable in order to use .NET global tools.
Usage
# Show help
fu -h
fu count -h
fu size -h
# Available commands
fu count [searchPath] [OPTIONS]
fu size [searchPath] [OPTIONS]
fu tree [searchPath] [OPTIONS]
Examples:
# Count the size of all files in the home directory and its subdirectories
fu size ~/ -r --hidden
# Count the size of regular files in the current directory
fu size
# Count the size of all files in the current directory and its subdirectories and display the top 10 largest directories
fu size -r --hidden --head 10
# Display all direcotries and files in the current directory and its subdirectories
fu tree -r --hidden
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.