A CLI app that interacts with Author's Haven
-
View all articles
node cli.js ah list
-
View specific article
node cli.js ah view <article-slug>
-
Save specific article to file
node cli.js ah view <article-slug> --save
-
Retrieve specific saved article from file
node cli.js ah view <article-slug> --offline
-
Filter article with various flags
node cli.js ah search <flag_name>=<flag_value> <2nd_flag_name=<2nd_flag_value>
1. author - to get posts by a specific author `author=tevin` 2. tag - to get articles with a specific tag `tag=python` 3. title - to get articles with a title that matches what is provided `title=flutter` 4. page_size - determines the number of articles displayed per page. `page_size=40`
Flags can be composed together
node cli.js ah search author=tevin tag=python title=flutter page_size=40
-
To Get help with commands
node cli.js ah help