Caution
This application is not production ready.
Warning
This application requires iemanjad
to be running.
Iemanja CLI is a command-line interface for managing posts and tags within the Iemanja application ecosystem. It allows users to perform CRUD operations on posts and tags through simple and intuitive commands.
To install Iemanja CLI, use the following Go command:
go install github.com/ugsto/iemanja-cli/...@latest
Iemanja CLI supports a variety of commands for managing posts and tags. Below are the available commands and their revised usage based on the updated CLI application code.
- List Posts: Lists all posts with pagination support.
iemanja-cli list-posts --limit 10 --offset 0
- Create Post: Creates a new post with a title, content, and tags.
iemanja-cli create-post --title "Your Title" --content "Your Content" --tags tag1,tag2
- Get Post: Retrieves a post by its ID.
iemanja-cli get-post <postID>
- Update Post: Updates an existing post's title, content, and tags by its ID.
iemanja-cli update-post <postID> --title "New Title" --content "New Content" --tags newtag1,newtag2
- Delete Post: Deletes a post by its ID.
iemanja-cli delete-post <postID>
- Write Post: Writes a new post or edits an existing post using the default editor.
iemanja-cli write-post [<id>]
- List Tags: Lists all tags with pagination support.
iemanja-cli list-tags --limit 10 --offset 0
- Create Tag: Creates a new tag with a name.
iemanja-cli create-tag <tagName>
- Get Tag: Retrieves a tag by its name.
iemanja-cli get-tag <tagName>
- Update Tag: Updates an existing tag's name to a new name.
iemanja-cli update-tag <originalName> --name "newName"
- Delete Tag: Deletes a tag by its name.
iemanja-cli delete-tag <tagName>
This project is licensed under the GNU Affero General Public License Version 3 (AGPLv3) - see the LICENSE file for details.