Skip to content

Iemanja CLI: A command-line tool for effortless management of posts and tags within the Iemanja ecosystem.

License

Notifications You must be signed in to change notification settings

ugsto/iemanja-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iemanja CLI

Go tests


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.

Installation

To install Iemanja CLI, use the following Go command:

go install github.com/ugsto/iemanja-cli/...@latest

Usage

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.

Posts

  • 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>]

Tags

  • 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>

License

This project is licensed under the GNU Affero General Public License Version 3 (AGPLv3) - see the LICENSE file for details.

About

Iemanja CLI: A command-line tool for effortless management of posts and tags within the Iemanja ecosystem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages