C2PARemover.Cli 1.0.1

dotnet tool install --global C2PARemover.Cli --version 1.0.1
                    
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 C2PARemover.Cli --version 1.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=C2PARemover.Cli&version=1.0.1
                    
nuke :add-package C2PARemover.Cli --version 1.0.1
                    

C2PARemover CLI

A command-line tool for detecting and removing C2PA (Content Authenticity Initiative) metadata from JPEG and PNG images.

Installation

Install as .NET Tool

# Install from NuGet
dotnet tool install -g C2PARemover.Cli

# Or install from a local package
dotnet tool install -g --add-source ./nupkg C2PARemover.Cli

Build from Source

# Build the tool
dotnet build C2PARemover.Cli/C2PARemover.Cli.csproj

# Run directly
dotnet run --project C2PARemover.Cli/C2PARemover.Cli.csproj -- check image.jpg

Usage

Check for C2PA Metadata

c2paremover check image.jpg

Output:

  • ✓ No C2PA metadata found (exit code 0)
  • ⚠️ C2PA metadata detected (exit code 1)

Remove C2PA Metadata

c2paremover remove image.jpg

This creates a cleaned copy as image.jpg.cleaned.jpg and verifies the removal.

Check Directory

c2paremover check-dir /path/to/directory

Scans all JPEG and PNG files in the directory and reports which ones contain C2PA metadata.

Packaging as .NET Tool

Create NuGet Package

# Pack the tool
dotnet pack C2PARemover.Cli/C2PARemover.Cli.csproj -c Release

# The package will be created in: C2PARemover.Cli/bin/Release/C2PARemover.Cli.1.0.0.nupkg

Publish to NuGet

# Publish to NuGet.org (requires API key)
dotnet nuget push C2PARemover.Cli/bin/Release/C2PARemover.Cli.1.0.0.nupkg --api-key YOUR_API_KEY --source https://api.nuget.org/v3/index.json

Install from Local Package

# Create package
dotnet pack C2PARemover.Cli/C2PARemover.Cli.csproj -c Release

# Install from local package
dotnet tool install -g --add-source ./C2PARemover.Cli/bin/Release C2PARemover.Cli

Update Tool

dotnet tool update -g C2PARemover.Cli

Uninstall Tool

dotnet tool uninstall -g C2PARemover.Cli

Examples

# Check a single image
c2paremover check photo.jpg

# Remove C2PA from an image
c2paremover remove photo.jpg
# Creates: photo.jpg.cleaned.jpg

# Check all images in a directory
c2paremover check-dir ./images

Exit Codes

  • 0 - Success (no C2PA found, or removal successful)
  • 1 - C2PA detected, or error occurred
Product 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.

Version Downloads Last Updated
1.0.1 240 11/8/2025
1.0.0 198 11/8/2025