Skip to content

Refactor CLI and add more commands#14

Merged
lorisleiva merged 60 commits intomainfrom
loris/cli-improvements
Apr 17, 2025
Merged

Refactor CLI and add more commands#14
lorisleiva merged 60 commits intomainfrom
loris/cli-improvements

Conversation

@lorisleiva
Copy link
Member

@lorisleiva lorisleiva commented Apr 16, 2025

This PR leverages instruction plans in the CLI of the program metadata program to create complex operations in a simple API. It results in the following API:

Commands:
  write [options] <seed> <program> [file]   Create or update a metadata account for a given program.
  create [options] <seed> <program> [file]  Create a metadata account for a given program.
  update [options] <seed> <program> [file]  Update a metadata account for a given program.
  fetch [options] <seed> <program>          Fetch the content of a metadata account for a given program.
  set-authority [options] <seed> <program>  Set or update an additional authority on canonical metadata accounts.
  remove-authority <seed> <program>         Remove the additional authority on canonical metadata accounts.
  set-immutable [options] <seed> <program>  Make the metadata account immutable, preventing any further updates.
  close [options] <seed> <program>          Close metadata account and recover rent.
  create-buffer [options] [file]            Create a buffer account to use on metadata account later on.
  update-buffer [options] <buffer> [file]   Update an existing buffer account.
  list-buffers [authority]                  List all buffer accounts owned by an authority.
  fetch-buffer [options] <buffer>           Fetch the content of a buffer account.
  set-buffer-authority [options] <buffer>   Update the authority of an existing buffer account.
  close-buffer [options] <buffer>           Close an existing buffer account.

@lorisleiva lorisleiva merged commit 2f331fa into main Apr 17, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant