Skip to content

reoclo storage-credentials

reoclo storage-credentials ls [options]
reoclo storage-credentials get <credential>
reoclo storage-credentials create [options]
reoclo storage-credentials edit [options] <credential>
reoclo storage-credentials rm [options] <credential>

A storage credential is the access key of an S3-compatible service, such as AWS S3 or Cloudflare R2. A test pool uses one to reach the bucket that keeps its caches and artifacts. Creating, changing and deleting a credential needs an organization admin. Available from CLI 0.114.0.

<credential> accepts the credential’s name or its id. The secret access key is write-only: it is never shown by any command.

Lists the credentials with their endpoint, access key id and the pools that use them.

  • --skip <n> and --limit <n> page through the list. The default limit is 20, the most is 100.
Terminal window
$ reoclo storage-credentials ls
NAME ENDPOINT ACCESS KEY ID POOLS ID
r2-main https://acct.r2.cloudflarestorage.com AKIA1 ci 01a1cc64-d5fe-7273-8397-3827462802fb

Shows one credential, with the names of the pools that use it.

Terminal window
$ reoclo storage-credentials get r2-main

Creates a credential. --name and --access-key-id are required.

FlagWhat it sets
--name <name>The credential’s name.
--access-key-id <id>The access key id.
--endpoint <url>The S3-compatible endpoint, such as a Cloudflare R2 URL. Default: AWS S3.
--description <text>A description.
--secret-key-stdinReads the secret access key from stdin. Without it the CLI asks for the key with a masked prompt.

The secret key never goes on the command line, so it stays out of your shell history. In a script, pipe it in. When nobody can answer the prompt (no terminal, CI set or a coding agent’s shell) and --secret-key-stdin is missing, the command says so and exits 5.

Terminal window
$ printf '%s' "$R2_SECRET" | reoclo storage-credentials create --name r2-main \
--access-key-id AKIA1 --endpoint https://acct.r2.cloudflarestorage.com --secret-key-stdin
✓ storage credential created: r2-main (id: 01a1cc64-d5fe-7273-8397-3827462802fb)

Changes the fields you pass and leaves the rest. It takes the flags of create, all optional. A new --endpoint or --access-key-id needs the new secret key too, so pass --secret-key-stdin with them; the command exits 2 otherwise. A new secret key is tried against the bucket of every pool that uses the credential before anything is saved.

Terminal window
$ reoclo storage-credentials edit r2-main --description "CI cache"
✓ storage credential updated: r2-main (id: 01a1cc64-d5fe-7273-8397-3827462802fb)
$ printf '%s' "$NEW_SECRET" | reoclo storage-credentials edit r2-main --secret-key-stdin
✓ storage credential updated: r2-main (id: 01a1cc64-d5fe-7273-8397-3827462802fb)

Deletes a credential. It asks first; --yes skips the question.

Terminal window
$ reoclo storage-credentials rm r2-main --yes
✓ storage credential removed: r2-main