+
Skip to content

ardalis/RssCli

Repository files navigation

RSS CLI

A simple command-line tool for managing RSS feeds and viewing recent posts.

Features

  • Add RSS feed URLs to your personal collection
  • List all stored RSS feeds
  • Display recent posts from all your feeds
  • Automatic feed validation when adding new feeds
  • JSON-based local storage

Installation

  1. Clone or download this repository
  2. Make sure you have .NET 8.0 or later installed
  3. Build the project:
    dotnet build -c Release

Usage

Show Help

dotnet run -- --help
dotnet run -- -h
dotnet run -- help

You can also get help for individual commands:

dotnet run -- add --help
dotnet run -- list -h
dotnet run -- show --help

Add a New RSS Feed

dotnet run -- add <feed-url>

Example:

dotnet run -- add https://feeds.bbci.co.uk/news/rss.xml

List All Feeds

dotnet run -- list

Show Recent Posts from All Feeds

dotnet run -- show

Examples

# Show help
dotnet run -- --help

# Add some feeds
dotnet run -- add https://feeds.bbci.co.uk/news/rss.xml
dotnet run -- add https://feeds.feedburner.com/TechCrunch

# Get help for specific commands
dotnet run -- add --help

# List your feeds
dotnet run -- list

# See recent posts
dotnet run -- show

Data Storage

The CLI stores feed URLs in a feeds.json file in the same directory as the executable. This file is created automatically when you add your first feed.

Dependencies

Building a Standalone Executable

To create a self-contained executable:

# Windows
dotnet publish -c Release -r win-x64 --self-contained

# macOS
dotnet publish -c Release -r osx-x64 --self-contained

# Linux
dotnet publish -c Release -r linux-x64 --self-contained

The executable will be in the bin/Release/net8.0/<runtime>/publish/ directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载