diff --git a/src/libs/Firecrawl.Cli/Commands/AuthCommand.cs b/src/libs/Firecrawl.Cli/Commands/AuthCommand.cs index 312db47..d9ab7fd 100644 --- a/src/libs/Firecrawl.Cli/Commands/AuthCommand.cs +++ b/src/libs/Firecrawl.Cli/Commands/AuthCommand.cs @@ -4,10 +4,12 @@ namespace Firecrawl.Cli.Commands; public class AuthCommand : Command { - public AuthCommand() : base(name: "auth", description: "Authenticates with API key") + public AuthCommand() : base( + name: "auth", + description: "Authenticates with API key") { var apiKeyOption = new Argument( - name: "apiKey", + name: "api-key", getDefaultValue: () => string.Empty, description: "API key"); AddArgument(apiKeyOption); diff --git a/src/libs/Firecrawl.Cli/Commands/CrawlCommand.cs b/src/libs/Firecrawl.Cli/Commands/CrawlCommand.cs index 3623522..fc83b9d 100644 --- a/src/libs/Firecrawl.Cli/Commands/CrawlCommand.cs +++ b/src/libs/Firecrawl.Cli/Commands/CrawlCommand.cs @@ -4,7 +4,9 @@ namespace Firecrawl.Cli.Commands; public class CrawlCommand : Command { - public CrawlCommand() : base(name: "crawl", description: "Crawl a url and saves all pages as markdown") + public CrawlCommand() : base( + name: "crawl", + description: "Crawl a url and saves all pages as markdown") { var url = new Argument( name: "url", @@ -13,19 +15,19 @@ public CrawlCommand() : base(name: "crawl", description: "Crawl a url and saves AddArgument(url); var outputPath = new Option( - name: "outputPath", + aliases: ["--output", "-o"], getDefaultValue: () => string.Empty, description: "Output path"); AddOption(outputPath); var limit = new Option( - name: "limit", + aliases: ["--limit", "-l"], getDefaultValue: () => 5, description: "Limit of pages to crawl"); AddOption(limit); var maxDepth = new Option( - name: "maxDepth", + aliases: ["--max-depth", "-d"], getDefaultValue: () => null, description: "Maximum depth to crawl relative to the entered URL. A maxDepth of 0 scrapes only the entered URL. A maxDepth of 1 scrapes the entered URL and all pages one level deep. A maxDepth of 2 scrapes the entered URL and all pages up to two levels deep. Higher values follow the same pattern."); AddOption(maxDepth); diff --git a/src/libs/Firecrawl.Cli/Commands/MapCommand.cs b/src/libs/Firecrawl.Cli/Commands/MapCommand.cs index 1e487be..67a9aef 100644 --- a/src/libs/Firecrawl.Cli/Commands/MapCommand.cs +++ b/src/libs/Firecrawl.Cli/Commands/MapCommand.cs @@ -4,7 +4,9 @@ namespace Firecrawl.Cli.Commands; public class MapCommand : Command { - public MapCommand() : base(name: "map", description: "Attempts to output all website's urls in a few seconds.") + public MapCommand() : base( + name: "map", + description: "Attempts to output all website's urls in a few seconds.") { var url = new Argument( name: "url", @@ -13,7 +15,7 @@ public MapCommand() : base(name: "map", description: "Attempts to output all web AddArgument(url); var outputPath = new Option( - name: "outputPath", + aliases: ["--output", "-o"], getDefaultValue: () => string.Empty, description: "Output path"); AddOption(outputPath); diff --git a/src/libs/Firecrawl.Cli/Commands/ScrapeCommand.cs b/src/libs/Firecrawl.Cli/Commands/ScrapeCommand.cs index 5792be5..78c6874 100644 --- a/src/libs/Firecrawl.Cli/Commands/ScrapeCommand.cs +++ b/src/libs/Firecrawl.Cli/Commands/ScrapeCommand.cs @@ -4,7 +4,9 @@ namespace Firecrawl.Cli.Commands; public class ScrapeCommand : Command { - public ScrapeCommand() : base(name: "scrape", description: "Scrapes page and saves it as markdown") + public ScrapeCommand() : base( + name: "scrape", + description: "Scrapes page and saves it as markdown") { var url = new Argument( name: "url", @@ -13,7 +15,7 @@ public ScrapeCommand() : base(name: "scrape", description: "Scrapes page and sav AddArgument(url); var outputPath = new Option( - name: "outputPath", + aliases: ["--output", "-o"], getDefaultValue: () => "output.md", description: "Output path"); AddOption(outputPath);