mukan-ignite/docs/versioned_docs/version-v0.26/02-guide/04-blog/08-play.md
Mukan Erkin Törük 26b204bd04
Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions
2026-05-11 03:31:37 +03:00

1.3 KiB

Play

Create a blog post by Alice

blogd tx blog create-post hello world --from alice

Show a blog post

blogd q blog show-post 0
post:
  body: world
  creator: cosmos1x33ummgkjdd6h2frlugt3tft7vnc0nxyfxnx9h
  id: "0"
  title: hello

Create a blog post by Bob

blogd tx blog create-post foo bar --from bob

List all blog posts with pagination

blogd q blog list-post       
pagination:
  next_key: null
  total: "2"
post:
- body: world
  creator: cosmos1x33ummgkjdd6h2frlugt3tft7vnc0nxyfxnx9h
  id: "0"
  title: hello
- body: bar
  creator: cosmos1ysl9ws3fdamrrj4fs9ytzrrzw6ul3veddk7gz3
  id: "1"
  title: foo

Update a blog post

blogd tx blog update-post hello cosmos 0 --from alice
blogd q blog show-post 0
post:
  body: cosmos
  creator: cosmos1x33ummgkjdd6h2frlugt3tft7vnc0nxyfxnx9h
  id: "0"
  title: hello

Delete a blog post

blogd tx blog delete-post 0 --from alice
blogd q blog list-post
pagination:
  next_key: null
  total: "1"
post:
- body: bar
  creator: cosmos1ysl9ws3fdamrrj4fs9ytzrrzw6ul3veddk7gz3
  id: "1"
  title: foo

Delete a blog post unsuccessfully

blogd tx blog delete-post 1 --from alice
raw_log: 'failed to execute message; message index: 0: incorrect owner: unauthorized'