Beaker Docs
  • Welcome
  • Getting Started with Beaker
  • Joining the Social Network
  • Why use Beaker?
  • Beginner
    • Creating New Hyperdrives
    • Changing a Drive's Title or Thumbnail
    • Using the Editor
    • Detaching the Editor
    • Creating Files and Folders
    • Importing and Exporting Files
    • Sharing Hyperdrives
    • Hosting Hyperdrives
  • Intermediate
    • Your Profile Drive
    • Your Address Book
    • Your System Drive
  • Advanced
    • Webterm
    • Creating Mounts
    • Editing File Metadata
    • Forking Hyperdrives
    • Comparing and Merging Hyperdrives
  • APIs
    • beaker.capabilities
    • beaker.contacts
    • beaker.hyperdrive
    • beaker.markdown
    • beaker.peersockets
    • beaker.shell
    • beaker.terminal
  • Developers
    • Introduction to Hyperdrive
    • Index.json Manifest
    • Content-Type Negotiation
    • Frontends (.ui folder)
    • .Goto Files
  • Help
    • Hole-punchability
Powered by GitBook
On this page
  • In the editor
  • In the terminal

Was this helpful?

  1. Advanced

Editing File Metadata

PreviousCreating MountsNextForking Hyperdrives

Last updated 5 years ago

Was this helpful?

Files in Hyperdrive can have metadata values.

Metadata is stored as a UTF-8 string. Each value is identified by a key string. You can put as many metadata values as you like on a file, but avoid going too far or you'll slow down reads.

In the editor

Visit the file you want to modify and . Then click on the "File Metadata" button on the toolbar.

A dropdown will appear with the metadata keys on the left and the values on the right. Use the empty inputs on the bottom to add a new value. You can modify existing values or remove them by simply deleting their values.

When you are finished, click "Save" to write the changes.

In the terminal

Visit your hyperdrive and open the terminal by clicking "Terminal."

Get all metadata values for a file by entering meta {filename}

Get a single metadata value for a file by entering meta {filename} {key}

Change a single metadata value by entering meta {filename} {key} {value}

If your value has spaces, wrap it in quotes.

open the editor