blobs
Manage objects in Netlify Blobs
Usage
netlify blobs
Flags
filter
(string) - For monorepos, specify the name of the application to run the command indebug
(boolean) - Print debugging information
Subcommand | description |
---|---|
blobs:delete | Deletes an object with a given key, if it exists, from a Netlify Blobs store |
blobs:get | Reads an object with a given key from a Netlify Blobs store and, if it exists, prints the content to the terminal or saves it to a file |
blobs:list | Lists objects in a Netlify Blobs store |
blobs:set | Writes to a Netlify Blobs store an object with the data provided in the command or the contents of a file defined by the 'input' parameter |
Examples
netlify blobs:get my-store my-key netlify blobs:set my-store my-key This will go in a blob netlify blobs:set my-store my-key --input ./some-file.txt netlify blobs:delete my-store my-key netlify blobs:list my-store netlify blobs:list my-store --json
blobs:delete
Deletes an object with a given key, if it exists, from a Netlify Blobs store
Usage
netlify blobs:delete
Arguments
- store - Name of the store
- key - Object key
Flags
filter
(string) - For monorepos, specify the name of the application to run the command inforce
(boolean) - Bypasses prompts & Force the command to run.debug
(boolean) - Print debugging information
blobs:get
Reads an object with a given key from a Netlify Blobs store and, if it exists, prints the content to the terminal or saves it to a file
Usage
netlify blobs:get
Arguments
- store - Name of the store
- key - Object key
Flags
filter
(string) - For monorepos, specify the name of the application to run the command inoutput
(string) - Defines the filesystem path where the blob data should be persisteddebug
(boolean) - Print debugging information
blobs:list
Lists objects in a Netlify Blobs store
Usage
netlify blobs:list
Arguments
- store - Name of the store
Flags
directories
(boolean) - Indicates that keys with the '/' character should be treated as directories, returning a list of sub-directories at a given level rather than all the keys inside themfilter
(string) - For monorepos, specify the name of the application to run the command injson
(boolean) - Output list contents as JSONprefix
(string) - A string for filtering down the entries; when specified, only the entries whose key starts with that prefix are returneddebug
(boolean) - Print debugging information
blobs:set
Writes to a Netlify Blobs store an object with the data provided in the command or the contents of a file defined by the 'input' parameter
Usage
netlify blobs:set
Arguments
- store - Name of the store
- key - Object key
- value - Object value
Flags
filter
(string) - For monorepos, specify the name of the application to run the command inforce
(boolean) - Bypasses prompts & Force the command to run.input
(string) - Defines the filesystem path where the blob data should be read fromdebug
(boolean) - Print debugging information