This section covers all commands related to managing authors.
Command: blogforge authors create
This command allows you to create a new author profile.
Usage:
blogforge authors create --name <name> [options]Options:
--name <name>: (Required) The full name of the author.--email <email>: (Optional) The email address of the author.--bio <bio>: (Optional) A short biography of the author.--slug <slug>: (Optional) The slug for the author's profile page. If not provided, it will be generated from the name.
Examples:
blogforge authors create --name "Jane Doe" --email "jane.doe@example.com"This will create a new author profile for Jane Doe.
Command: blogforge authors delete
This command allows you to delete an existing author profile.
Usage:
blogforge authors delete <slug>Arguments:
<slug>: (Required) The slug of the author to delete.
Examples:
blogforge authors delete jane-doeThis will delete the author profile with the slug jane-doe.
Command: blogforge authors doctor
This command helps diagnose and fix common issues with author profiles, such as missing information.
Usage:
blogforge authors doctor [slug]Arguments:
[slug]: (Optional) The slug of a specific author to diagnose. If not provided, all author profiles will be checked.
Examples:
blogforge authors doctor jane-doeThis will check the author profile jane-doe for issues.
blogforge authors doctorThis will check all author profiles for issues.
Command: blogforge authors edit
This command allows you to edit an existing author profile.
Usage:
blogforge authors edit <slug> [options]Arguments:
<slug>: (Required) The slug of the author to edit.
Options:
--name <name>: The new name of the author.--email <email>: The new email of the author.--bio <bio>: The new biography of the author.--slug <new-slug>: The new slug for the author's profile.
Examples:
blogforge authors edit jane-doe --email "new.email@example.com"This will update the email for the author profile jane-doe.
Command: blogforge authors list
This command lists all author profiles.
Usage:
blogforge authors list [options]Options:
--sort-by <field>: Sort authors by a specific field (e.g.,name,email).--asc: Sort in ascending order.--desc: Sort in descending order.
Examples:
blogforge authors listThis will list all author profiles.
blogforge authors list --sort-by name --ascThis will list all author profiles sorted by name in ascending order.
Command: blogforge authors stats
This command displays statistics about authors, including the number of articles written and approximate total word count.
Usage:
blogforge authors stats [options]Options:
--verbose: (Optional) Enable verbose logging for more detailed output (e.g., list of articles per author).
Examples:
blogforge authors statsThis will display a table with author names, IDs, article counts, and total word counts.
blogforge authors stats --verboseThis will display the main statistics table and also list the titles of articles written by each author.