Menu

weird storage

Store files and folders, download them, serve them at your hostnames.

weird storage [flags]

Also: weird ipfs.

Storage: files and folders kept as several copies at independent storage providers, served at a gateway address and at your own hostnames.

weird storage enable                        once: read where copies are kept, agree, enable
weird storage add photo.jpg                 upload a file (prints its CID and gateway address)
weird storage add ./site                    upload a folder (index.html is served at its root)
weird storage add ./nunta --lock                   a locked album (encrypted here)
weird storage add secret.pdf --encrypt-password    encrypted here first (older format)
weird storage get <cid> -o photo.jpg        download (a folder is unpacked)
weird storage list                          what you store
weird storage status                        usage, and whether anything is unpaid
weird storage domains attach www.example.ro <cid>  serve it at your own hostname

Storage bills by the hour for what is kept (per MB, every copy) and per MB served; weird credits charges lists the rates. You are asked before anything is charged.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: add, check-site, copies, delete, domains, enable, get, grants, inspect, keys, list, lock, notice, path-maps, pins, show, status, uploads.

weird storage add#

Upload a file or folder (prints its content id, CID and gateway address).

weird storage add <file|folder> [flags]

Uploads a file, or a folder (served as a website: index.html at its root), and gives it a gateway address. The content id computed on this computer is checked against the one weird stored.

weird storage add photo.jpg
weird storage add ./site                         a folder
weird storage add backup.tar --copies 3          one more copy than the account's
weird storage add ./nunta --lock                 a locked album: encrypted here,
                                                 opened with a password
weird storage add ./nunta --lock --link --recovery-kit kit.txt
weird storage add doc.pdf --lock-to weirdpk1… --lock-key me
weird storage add secret.pdf --encrypt-password  the older single-envelope format
weird storage add notes.txt --encrypt-to weirdpk1… --sign me
weird storage add site.car --car                 a CAR file packed elsewhere

Large files go up in parts straight to a storage node; progress is shown on stderr. Ctrl-C abandons the upload (nothing is billed for it) unless --keep: then weird storage add --resume <id> sends only the parts still missing.

A folder is sent as one zip the storage node unpacks (so it must fit one upload part, 4 GiB unless weird says otherwise); .DS_Store files and __MACOSX are left out; symbolic links are refused.

A website folder may carry its own rules, _redirects and _headers at its root (weird help sites). They are uploaded like any file, and checked here first, as weird storage check-site does: problems are shown as a warning; --strict stops before uploading when the gateway would refuse a file.

Locking (--lock, --lock-to, --lock-key, --link, --recovery-kit) makes a weirdlock1 album of the file or folder here — every file encrypted in 64 KiB segments under one album key, names and sizes in an encrypted manifest, the key wrapped once per way in — and uploads it as a folder. The password is typed hidden, twice (in scripts: --password-fd N or --password-env NAME); it never reaches weird. weird storage lock --help tells more.

The older --encrypt-* options store one opaque envelope (weirdenc1) that downloads with --decrypt options. Lost passwords and keys cannot be recovered.

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--carboolthe file is a CAR packed elsewhere (one root)
--copiesint0keep this many copies (default: your account's; at least 2)
--encrypt-passwordboolencrypt here first with a password (asked hidden, twice)
--encrypt-tostringencrypt here first so only the holder of this public key (weirdpk1…) can open it
--expiresstringan ADVISORY expiry date (YYYY-MM-DD) cooperating viewers honour; it cannot stop someone who saved the album
--keepboolon Ctrl-C or failure keep the upload to resume it later
--key-filestringencrypt here first with a 32-byte key file
--linkbooladd a share link (the key travels in the link's #fragment) and print it once
--lockboollock it (weirdlock1) with a password, asked hidden and twice
--lock-keystringArraylock it for your own key of this name too (weird storage keys list); repeatable
--lock-tostringArraylock it for this person's public key (weirdpk1…); repeatable
--lock-to-hiddenstringArrayas --lock-to, without writing whose key it is; repeatable
--namestringthe name stored with it (default: the file or folder name)
--no-thumbnailsboolmake no previews of JPEG and PNG files
--no-waitboolsend the parts and return without waiting for the copies
--padboolpad every file's size (Padmé, at most 12% more storage) so exact sizes are hidden
--password-envstringread the new password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the new password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--password-hintstringa PUBLIC hint shown next to the password field (anyone can read it; never the password or a clue to it)
--recovery-kitstringadd a recovery link and write it to this new file (0600); keep it offline
--resumestringresume an upload started on this computer (its upload id)
--share-hoststringprint the share link at this hostname of yours (default: the content's own browser address, when weird gives one)
--signstringwith --encrypt-to: sign with your key of this name (weird storage keys list)
--skip-site-checkbooldo not check the folder's _redirects and _headers
--strictboolstop before uploading when the folder's _redirects or _headers would be refused
--titlestringthe album's title (encrypted)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin.

weird storage check-site#

Check a website folder's _redirects and _headers on this computer (nothing is sent).

weird storage check-site <folder> [flags]

Checks the site's own rules at the root of a folder — the _redirects and _headers files — the way the gateway reads them, and reports each problem with its line:

errors   the gateway would refuse the file (and answer an error for the
         pages it decides): fix them before you publish;
notes    a line the gateway ignores, or ignores on some addresses (a free
         address cannot redirect to another site; some headers apply on
         your own domain only), or a rule that can never apply.
weird storage check-site ./site
weird storage check-site ./site --on free-name   only what matters on a free address

The limits are settings of the platform; the check uses their documented defaults and says so. Nothing is uploaded or charged. weird help sites explains the two files. weird storage add and weird names publish run this check by themselves (a warning; --strict stops on an error).

Exit status: 0 when the gateway would accept both files, 2 when it would refuse one.

FlagTypeDefaultMeaning
--onstringonly what matters on one kind of address: domain, free-name or content

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage copies#

Keep a content as more (or fewer) copies.

weird storage copies <cid> <count> [flags]

Changes how many copies a content is kept as (at least 2). More copies are made at providers it has no copy at, each billed from when it is stored; fewer stop being billed at once and are removed.

weird storage copies bafy… 3
weird storage copies bafy… 2 --copy-no 3     take away copy 3

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; ipfs.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copy-noint0when lowering by one: the copy to take away

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getIpfsContent, setIpfsContentCopies.

weird storage delete#

Delete stored content and every copy of it (cannot be undone).

weird storage delete <cid> [flags]

Also: weird storage rm.

Deletes the content: it stops being billed and served at once, its pins are retired with it, and every copy is removed from its storage provider. Content still served at one of your hostnames or path maps is refused: retarget or detach those first.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getIpfsContent, deleteIpfsContent.

weird storage domains#

Serve stored content at your own hostnames.

weird storage domains [flags]

Serves stored content at a hostname of a DNS zone you host with weird (the zone must be live), or at one of your free names (weird names). Its records are written for you.

weird storage domains attach www.example.ro bafy…
weird storage domains retarget www.example.ro bafy…new   serve other content
weird storage domains detach www.example.ro

Attaching, retargeting and detaching each spend the credits of a DNS change (dns.manage).

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: attach, detach, get, list, pins, retarget.

weird storage domains attach#

Serve stored content at a hostname of one of your live zones, or a free name of yours.

weird storage domains attach <hostname> <cid> [flags]

Serves stored content at a hostname of one of your live DNS zones, or at one of your free names (weird names list; weird names publish claims, uploads and attaches in one go). The records are written for you and never overwrite existing ones.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails). You are shown the credits it takes and asked first.

FlagTypeDefaultMeaning
--as-delegate-ofstringattach in another account's zone under its storage grant (its account id)
--no-dnslinkbooldo not write the DNSLink record
--pinstringSlicealso serve these pins under the hostname (pin ids)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: attachIpfsDomain.

weird storage domains detach#

Stop serving a hostname and remove its records (the content stays stored).

weird storage domains detach <hostname|id> [flags]

Stop serving a hostname and remove its records (the content stays stored).

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsDomains, detachIpfsDomain.

weird storage domains get#

One storage hostname, its DNS advice and pins.

weird storage domains get <hostname|id> [flags]

One storage hostname, its DNS advice and pins.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsDomains, getIpfsDomain.

weird storage domains list#

Your storage hostnames.

weird storage domains list [flags]

Your storage hostnames.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsDomains.

weird storage domains pins#

The pins served under a hostname (and update).

weird storage domains pins <hostname|id> [flags]

The pins served under a hostname (and update).

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--limitint0page size (1 to 100)
--offsetint0rows to skip

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsDomains, listIpfsDomainPins.

Subcommands: update.

weird storage domains pins update#

Add or remove pins served under a hostname (all or nothing).

weird storage domains pins update <hostname|id> [flags]

Add or remove pins served under a hostname (all or nothing).

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--addstringSlicepin ids to serve
--removestringSlicepin ids to stop serving

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsDomains, updateIpfsDomainPins.

weird storage domains retarget#

Serve other stored content at a hostname.

weird storage domains retarget <hostname|id> <cid> [flags]

Serve other stored content at a hostname.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsDomains, retargetIpfsDomain.

weird storage enable#

Enable storage: read where copies are kept, agree, and enable it (credits are taken once).

weird storage enable [flags]

Storage is enabled once per account, before the first upload. You are shown where the copies of your content will be kept and asked to agree; enabling spends credits once (how many is shown before you agree). Running it again on an enabled account re-acknowledges a changed notice and takes nothing.

Cost, in credits (every credit charge is in weird credits charges): ipfs.storage-enable per_data_set × copies, taken once; ipfs.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getIpfsLocationNotice, enableIpfsStorage.

weird storage get#

Download content through its gateway address (folders are unpacked).

weird storage get <cid|content id|name> [flags]

Downloads stored content through its gateway address. A folder is unpacked into a folder; every file is checked against its content id where the id can be recomputed here.

weird storage get bafy… -o photo.jpg
weird storage get bafy… -o ./site                  a folder
weird storage get bafy… --decrypt-password         encrypted with a password
weird storage get bafy… --key-file k.bin           encrypted with a key file
weird storage get bafy… --key me                   encrypted to your public key
weird storage get bafy… --unlock -o ./nunta        a locked album, opened with its password
weird storage get bafy… --link-key                 … with a share link (pasted hidden)
weird storage get bafy… --recovery-kit kit.txt     … with a recovery kit

A locked album or file is downloaded as it is stored, then opened here: each file is written only once its whole encrypted stream authenticated. Without a way to open it, it is saved encrypted.

Content encrypted on the previous platform opens the same way (up to 1 GiB, which that format must hold in memory).

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--decrypt-passwordbooldecrypt with a password (asked hidden)
--forceboolreplace existing files
--keystringdecrypt with your key of this name (content encrypted to your public key)
--key-filestringdecrypt with a 32-byte key file
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--output, -ostringwhere to save (a file, or a folder for folder content)
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins.

weird storage grants#

Let another account manage storage hostnames under one of your domains.

weird storage grants [flags]

A storage grant lets another weird account attach and manage storage hostnames under one of your domains; what they create is yours (your limits, your content) and is billed to the payer you choose.

weird storage grants create dan@example.com example.ro --payer grantee
weird storage grants revoke <id>

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: create, list, revoke.

weird storage grants create#

Give another account storage management under a domain.

weird storage grants create <email> <domain> [flags]

Give another account storage management under a domain.

Cost, in credits (every credit charge is in weird credits charges): ipfs.writes per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--payerstringwhose credits it spends: owner (default), grantee or split

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: createIpfsGrant.

weird storage grants list#

The storage grants you gave and received.

weird storage grants list [flags]

The storage grants you gave and received.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsGrants.

weird storage grants revoke#

End a storage grant (the hostnames stay yours).

weird storage grants revoke <id> [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: revokeIpfsGrant.

weird storage inspect#

What a CID says about itself: version, encoding, hash, canonical form.

weird storage inspect <cid> [flags]

What a CID says about itself: version, encoding, hash, canonical form.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: inspectIpfsCid.

weird storage keys#

Your encryption key pairs, on this computer only.

weird storage keys [flags]

Key pairs to receive encrypted content and to sign what you send. They live only on this computer (the storage-keys folder of the config directory); this program never sends the private keys to weird. Share the public key (weirdpk1…); keep the key files safe — content encrypted to a lost key cannot be recovered.

weird storage keys create me
weird storage keys show me                     the public key to share
they:  weird storage add file.pdf --encrypt-to weirdpk1… --sign them
you:   weird storage get <cid> --key me
weird storage keys import ~/old/ipfs-keys/me.json   a key file from the previous platform
weird storage keys export me -o me-recovery.json    a recovery copy (0600) to keep offline

Locked albums can be opened with your key too: lock with --lock-key me, open with --key me.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: create, delete, export, import, list, show.

weird storage keys create#

Make a new key pair.

weird storage keys create <name> [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage keys delete#

Delete a key pair from this computer (cannot be undone).

weird storage keys delete <name> [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage keys export#

Write a recovery copy of a key pair (private key included) to a new file, 0600.

weird storage keys export <name> -o <file> [flags]

Writes the key pair — its PRIVATE key included — to a new file readable only by you (0600), in the format weird storage keys import reads. Keep it offline (a USB stick in a drawer, a printed copy): whoever holds it can open everything locked or encrypted to this key. It is never printed.

FlagTypeDefaultMeaning
--output, -ostringthe new file to write (never overwritten)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage keys import#

Import a key file (this CLI's or the previous platform's).

weird storage keys import <key file> [flags]
FlagTypeDefaultMeaning
--namestringthe name to keep it under (default: the name in the file)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage keys list#

Your key pairs.

weird storage keys list [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage keys show#

A key pair's public key, to share.

weird storage keys show <name> [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage list#

What you store.

weird storage list [flags]

Also: weird storage ls, weird storage content.

What you store.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--cidstringexactly this CID
--limitint0page size (1 to 500, default 100)
--offsetint0rows to skip
--orderstringasc (default) or desc
--searchstringa name containing this, or a CID starting with it
--statusstringstored (default), another status, a comma list, or all

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent.

weird storage lock#

Locked albums and files: show, list, open, change who may open them.

weird storage lock [flags]

Locked content (weirdlock1): albums and files encrypted on this computer before they are uploaded. They open with a password, a share link, a recovery kit, or a person's key; weird and the storage providers store only ciphertext, never the password or a key. They do see sizes, the number of files and the stored name (the folder's name unless --name says otherwise), and weird serves the viewer that opens an album in a browser (check it with weird storage lock viewer verify). Lost passwords cannot be recovered.

weird storage add ./nunta --lock                  lock a folder as an album and upload it
weird storage add ./nunta --lock --link --recovery-kit kit.txt
weird storage add doc.pdf --lock-to weirdpk1… --lock-key me
weird storage get <cid> --unlock -o ./nunta        download and open
weird storage lock show <cid>                      what weird (and anyone) can see of it
weird storage lock list <cid> --unlock             what it holds (after opening)
weird storage lock add-person <cid> weirdpk1…      change who may open it (re-uploads the
weird storage lock add-link <cid>                  key list with the same encrypted files)
weird storage lock password <cid>
weird storage lock remove <cid> --slot 2
weird storage lock seal doc.pdf -o doc.pdf.wlk --lock     a locked file, not uploaded
weird storage lock open ./album -o ./plain --unlock      open a local copy, no network
weird storage lock viewer show                     the browser viewer albums get, and its hashes
weird storage lock viewer verify <cid>             which viewer a stored album carries
weird storage lock viewer update <cid> --host H    give it this program's viewer (re-upload)

Changing who may open stored content uploads a new copy (only the key list differs; the encrypted files are the same bytes) and, with --host, serves it at your hostname instead of the old one. The old copy is still stored until you delete it. Removing a way in does not take back what was already opened: whoever opened it before may have kept the album key or the files, and the old copy stays readable to them. To shut someone out for good, lock everything again under a new key (new upload): weird storage get <cid> --unlock -o dir, then weird storage add dir --lock …

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: add-link, add-password, add-person, list, open, password, remove, seal, show, viewer.

Add a share link (printed once) or a recovery kit.

weird storage lock add-link <cid|content id|name|local path> [flags]

Add a share link (printed once) or a recovery kit.

A local album folder or locked file is changed in place. Stored content is downloaded, its key list changed here, and the album uploaded again as new content (the encrypted files are the same bytes; only the key list differs); --host then serves the new copy at your hostname. The old copy stays stored (and billed) until you delete it.

Removing a way in does not take back what was already opened: whoever opened it before may have kept the album key or the files, and the old copy stays readable to them. To shut someone out for good, lock everything again under a new key (new upload): weird storage get <cid> --unlock -o dir, then weird storage add dir --lock …

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copiesint0stored content: keep the new copy as this many copies (default: your account's)
--hoststringstored content: serve the new copy at this hostname of yours instead of the old one (a DNS change, dns.manage)
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--share-hoststringprint the share link at this hostname of yours (default: the content's own browser address, when weird gives one)
--unlockboolopen with a password (asked hidden)
--write-kitstringwrite the new link as a recovery kit to this new file (0600) instead of printing it

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins, createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin, listIpfsDomains, retargetIpfsDomain.

weird storage lock add-password#

Add another password.

weird storage lock add-password <cid|content id|name|local path> [flags]

Add another password.

A local album folder or locked file is changed in place. Stored content is downloaded, its key list changed here, and the album uploaded again as new content (the encrypted files are the same bytes; only the key list differs); --host then serves the new copy at your hostname. The old copy stays stored (and billed) until you delete it.

Removing a way in does not take back what was already opened: whoever opened it before may have kept the album key or the files, and the old copy stays readable to them. To shut someone out for good, lock everything again under a new key (new upload): weird storage get <cid> --unlock -o dir, then weird storage add dir --lock …

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copiesint0stored content: keep the new copy as this many copies (default: your account's)
--hoststringstored content: serve the new copy at this hostname of yours instead of the old one (a DNS change, dns.manage)
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--new-password-envstringread the new password from the environment variable of this NAME (the name, never the password, goes on the command line)
--new-password-fdint-1read the new password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins, createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin, listIpfsDomains, retargetIpfsDomain.

weird storage lock add-person#

Let a person open it too (their public key or one of your key names).

weird storage lock add-person <cid|content id|name|local path> <weirdpk1…|key name>… [flags]

Let a person open it too (their public key or one of your key names).

A local album folder or locked file is changed in place. Stored content is downloaded, its key list changed here, and the album uploaded again as new content (the encrypted files are the same bytes; only the key list differs); --host then serves the new copy at your hostname. The old copy stays stored (and billed) until you delete it.

Removing a way in does not take back what was already opened: whoever opened it before may have kept the album key or the files, and the old copy stays readable to them. To shut someone out for good, lock everything again under a new key (new upload): weird storage get <cid> --unlock -o dir, then weird storage add dir --lock …

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copiesint0stored content: keep the new copy as this many copies (default: your account's)
--hiddenbooldo not write whose key it is (their key id)
--hoststringstored content: serve the new copy at this hostname of yours instead of the old one (a DNS change, dns.manage)
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins, createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin, listIpfsDomains, retargetIpfsDomain.

weird storage lock list#

What a locked item holds (names, types, sizes), after opening it.

weird storage lock list <cid|content id|name|local path> [flags]

Opens the item's key list and its encrypted manifest with your password, link, recovery kit or key, and lists the files. Only the small manifest is downloaded and decrypted, here.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins.

weird storage lock open#

Open a locked album or file without weird: a local copy, or from any IPFS gateway.

weird storage lock open <local album folder|locked file|cid --gateway URL> [flags]

Decrypts a locked item without weird — no account, no sign-in, no weird address involved: a local copy (an album folder or a locked file), or, with --gateway, content fetched by its CID from any IPFS gateway you name. Every fetched block is checked against the CID, so the gateway need not be trusted. Each file is written only once its whole encrypted stream has authenticated.

weird storage lock open ./album -o ./photos --unlock
weird storage lock open bafy… --gateway https://ipfs.example/ -o ./photos --recovery-kit kit.txt
FlagTypeDefaultMeaning
--forceboolreplace existing files
--gatewaystringfetch the CID from this IPFS gateway (any, not only weird's): <gateway>/ipfs/<cid>
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--output, -ostringwhere to write (a folder for an album)
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage lock password#

Change the password you open it with.

weird storage lock password <cid|content id|name|local path> [flags]

Change the password you open it with.

A local album folder or locked file is changed in place. Stored content is downloaded, its key list changed here, and the album uploaded again as new content (the encrypted files are the same bytes; only the key list differs); --host then serves the new copy at your hostname. The old copy stays stored (and billed) until you delete it.

Removing a way in does not take back what was already opened: whoever opened it before may have kept the album key or the files, and the old copy stays readable to them. To shut someone out for good, lock everything again under a new key (new upload): weird storage get <cid> --unlock -o dir, then weird storage add dir --lock …

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copiesint0stored content: keep the new copy as this many copies (default: your account's)
--hoststringstored content: serve the new copy at this hostname of yours instead of the old one (a DNS change, dns.manage)
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--new-password-envstringread the new password from the environment variable of this NAME (the name, never the password, goes on the command line)
--new-password-fdint-1read the new password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins, createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin, listIpfsDomains, retargetIpfsDomain.

weird storage lock remove#

Remove a way in (a slot number from weird storage lock show).

weird storage lock remove <cid|content id|name|local path> [flags]

Remove a way in (a slot number from weird storage lock show).

A local album folder or locked file is changed in place. Stored content is downloaded, its key list changed here, and the album uploaded again as new content (the encrypted files are the same bytes; only the key list differs); --host then serves the new copy at your hostname. The old copy stays stored (and billed) until you delete it.

Removing a way in does not take back what was already opened: whoever opened it before may have kept the album key or the files, and the old copy stays readable to them. To shut someone out for good, lock everything again under a new key (new upload): weird storage get <cid> --unlock -o dir, then weird storage add dir --lock …

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copiesint0stored content: keep the new copy as this many copies (default: your account's)
--hoststringstored content: serve the new copy at this hostname of yours instead of the old one (a DNS change, dns.manage)
--keystringopen with your key of this name (weird storage keys list)
--link-keyboolopen with a share link or its #k= key (pasted at a hidden prompt)
--password-envstringread the password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--recovery-kitstringopen with this recovery kit file
--slotint-1the slot to remove (weird storage lock show)
--unlockboolopen with a password (asked hidden)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins, createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin, listIpfsDomains, retargetIpfsDomain.

weird storage lock seal#

Lock one file into a single locked file here, without uploading it.

weird storage lock seal <file> -o <locked file> [flags]

Writes a single weirdlock1 file (keyring, encrypted manifest and contents in one file) that can be sent or stored anywhere and opened with weird storage lock open or any implementation of the format.

FlagTypeDefaultMeaning
--expiresstringan ADVISORY expiry date (YYYY-MM-DD) cooperating viewers honour; it cannot stop someone who saved the album
--linkbooladd a share link (the key travels in the link's #fragment) and print it once
--lockboollock it (weirdlock1) with a password, asked hidden and twice
--lock-keystringArraylock it for your own key of this name too (weird storage keys list); repeatable
--lock-tostringArraylock it for this person's public key (weirdpk1…); repeatable
--lock-to-hiddenstringArrayas --lock-to, without writing whose key it is; repeatable
--output, -ostringthe locked file to write (never overwritten)
--padboolpad every file's size (Padmé, at most 12% more storage) so exact sizes are hidden
--password-envstringread the new password from the environment variable of this NAME (the name, never the password, goes on the command line)
--password-fdint-1read the new password from this file descriptor (one line; 0 is standard input) instead of the hidden prompt
--password-hintstringa PUBLIC hint shown next to the password field (anyone can read it; never the password or a clue to it)
--recovery-kitstringadd a recovery link and write it to this new file (0600); keep it offline
--titlestringthe album's title (encrypted)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage lock show#

What anyone — weird included — can see of a locked item, without a key.

weird storage lock show <cid|content id|name|local path> [flags]

Reads only the public parts of a locked item — its key list and the sizes of its encrypted files — and says what they reveal and what stays hidden. No password or key is asked: this is exactly what weird, the storage providers and anyone holding the content id can see. For an album it also says which browser viewer release it carries, from the hashes of its index.html and v/ files (they are not encrypted, so anyone can check them), and whether that is a release this program knows.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins.

weird storage lock viewer#

The browser viewer locked albums carry: show it, verify an album's, update it.

weird storage lock viewer [flags]

Every locked album carries a browser viewer beside its encrypted lock/ folder: index.html, v/<release>/viewer.js and v/<release>/viewer.css, the same bytes in every album of a release. It opens the album in the browser at the album's own address (a hostname of yours, or the content's own address), never on a shared gateway path, and sends nothing anywhere.

The viewer is not encrypted, so anyone can check it: compare the SHA-256 of its files with the published release (https://docs.weird.ro/viewer/), or let this program do it. index.html binds the other two files by Subresource Integrity; only index.html could be changed unnoticed by a browser, and it is small enough to read.

weird storage lock viewer show                        the release new albums get
weird storage lock viewer verify <cid>                which release a stored album carries
weird storage lock viewer verify bafy… --gateway https://ipfs.example/
weird storage lock viewer verify ./album              a local copy
weird storage lock viewer update <cid> --host album.example.ro

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: show, update, verify.

weird storage lock viewer show#

The viewer release this program puts in new albums, with every file's SHA-256.

weird storage lock viewer show [flags]

Shows the browser viewer release embedded in this program — the files every album it locks gets, byte for byte — with each file's SHA-256, size and Subresource Integrity value, the set's fingerprint (SHA-256 of the lines "<path> <sha256>\n"), the source commit it was built from, and the earlier releases it still recognises. Compare them with the published release.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

weird storage lock viewer update#

Give an album this program's viewer release (only the viewer files change).

weird storage lock viewer update <cid|content id|name|local album folder> [flags]

Replaces an album's viewer files (index.html and v/) with the release this program embeds; the encrypted lock/ folder stays byte for byte the same and no password or key is asked. A local album folder is changed in place. Stored content is downloaded, changed here and uploaded again as new content: its content address CHANGES, so the content's own browser address changes with it. --host serves the new copy at your hostname instead of the old one; share links keep working when their #k= part is put after the album's address. The old copy stays stored (and billed) until you delete it.

Cost, in credits (every credit charge is in weird credits charges): recurring.ipfs-pin-hourly per_mb_hour × size in MB x copies, taken every hour while it exists; recurring.ipfs-pin-hourly per_mb_served, taken for what is used; dns.manage per_request, taken before it runs (returned if it fails); ipfs.reads per_request per successful request; ipfs.writes per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--copiesint0stored content: keep the new copy as this many copies (default: your account's)
--hoststringstored content: serve the new copy at this hostname of yours instead of the old one (a DNS change, dns.manage)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins, createUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin, listIpfsDomains, retargetIpfsDomain.

weird storage lock viewer verify#

Which viewer release an album carries, checked against the releases this program knows.

weird storage lock viewer verify <cid|content id|name|local album folder> [--gateway URL] [flags]

Reads an album's index.html and v/ files — never its encrypted part, so no password or key is asked — hashes them and says which known release they are: this program's, an earlier one, the page earlier versions wrote, or none it knows (changed after the album was made, or newer than this program). Stored content is read through its gateway address; with --gateway, a CID is read from any IPFS gateway, without an account. Every fetched file is checked against its content id.

Exit 1 when the files match no known release.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--gatewaystringread the CID from this IPFS gateway (any, not only weird's): <gateway>/ipfs/<cid>

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsContent, listPins.

weird storage notice#

Where your stored copies are kept, and whether you acknowledged it.

weird storage notice [flags]

Where your stored copies are kept, and whether you acknowledged it.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getIpfsLocationNotice.

weird storage path-maps#

Serve a pin under a path of one of your storage hostnames.

weird storage path-maps [flags]

A path map serves a pin's content at https://<hostname><path>/.

weird storage path-maps create www.example.ro /docs <pin id>
weird storage path-maps set <id> off          stop serving it (kept, can be turned on)
weird storage path-maps delete <id>

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: create, delete, list, set.

weird storage path-maps create#

Serve a pin at https://<hostname><path>/.

weird storage path-maps create <hostname> <path> <pin id> [flags]

Serve a pin at https://<hostname><path>/.

Cost, in credits (every credit charge is in weird credits charges): ipfs.writes per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: createPathMap.

weird storage path-maps delete#

Retire a path map.

weird storage path-maps delete <id> [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: deletePathMap.

weird storage path-maps list#

Your path maps.

weird storage path-maps list [flags]

Your path maps.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--hostnamestringonly this hostname's

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listPathMaps.

weird storage path-maps set#

Serve a path map again, or stop serving it (it is kept).

weird storage path-maps set <id> on|off [flags]

Serve a path map again, or stop serving it (it is kept).

Cost, in credits (every credit charge is in weird credits charges): ipfs.writes per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: setPathMapDesired.

weird storage pins#

Gateway addresses of your content (and get, create, delete).

weird storage pins [flags]

Gateway addresses of your content (and get, create, delete).

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--cidstringonly the pins of this CID
--limitint0at most this many (1 to 500, default 50)
--statusstringqueued, pinned or failed

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listPins.

Subcommands: create, delete, get.

weird storage pins create#

Give stored content a gateway address (serving bills per MB).

weird storage pins create <cid> [flags]

Pins stored content so it is served at a gateway address; the data served through it is billed per MB served. A content pinned already answers its existing pin.

Cost, in credits (every credit charge is in weird credits charges): ipfs.writes per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: createPin.

weird storage pins delete#

Retire a pin: its gateway address stops serving (the content stays stored).

weird storage pins delete <pin id> [flags]

Also: weird storage pins rm.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: deletePin.

weird storage pins get#

One pin.

weird storage pins get <pin id> [flags]

One pin.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getPin.

weird storage show#

One stored content: its copies and any copy being made.

weird storage show <cid> [flags]

One stored content: its copies and any copy being made.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getIpfsContent.

weird storage status#

What you store and serve, and whether storage is unpaid.

weird storage status [flags]

Also: weird storage usage.

What you store and serve, and whether storage is unpaid.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getIpfsUsage, getIpfsAccountUnpaid.

weird storage uploads#

Your upload sessions (and get, abort).

weird storage uploads [flags]

Your upload sessions (and get, abort).

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--limitint0page size
--offsetint0rows to skip
--statestringonly this state (open, completing, stored, failed, aborted, expired)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listIpfsUploads.

Subcommands: abort, get.

weird storage uploads abort#

Abandon an upload (nothing is billed for it).

weird storage uploads abort <upload id> [flags]

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: abortUpload.

weird storage uploads get#

One upload: its state and parts.

weird storage uploads get <upload id> [flags]

One upload: its state and parts.

Cost, in credits (every credit charge is in weird credits charges): ipfs.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getUpload.

This page is generated from the weird CLI; it changes when the CLI does.