docs/commands/blobs.md
blobsManage 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 informationauth (string) - Netlify auth token - can be used to run this command without logging in| 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:deleteDeletes an object with a given key, if it exists, from a Netlify Blobs store
Usage
netlify blobs:delete
Arguments
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 informationauth (string) - Netlify auth token - can be used to run this command without logging inblobs:getReads 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
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 informationauth (string) - Netlify auth token - can be used to run this command without logging inblobs:listLists objects in a Netlify Blobs store
Usage
netlify blobs:list
Arguments
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 informationauth (string) - Netlify auth token - can be used to run this command without logging inblobs:setWrites 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
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 informationauth (string) - Netlify auth token - can be used to run this command without logging in