/selise-blocks:blocks-storage-configurationfrom selise-blocks
Manages storage provider configurations (Azure Blob, S3-compatible, local/SFTP) for a SELISE Blocks project via the blocks CLI. Use to create, inspect, rotate, switch, or delete named provider configs with host, port, credentials, and region/endpoint.
Ships in selise-blocks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When invoking a project-scoped blocks command, either use the resolved account's saved selection or pass --project <tenantId> for that one command without changing saved state. --project applies to CLI commands only, never SDK calls.
Local snapshot: blocks/storage/ holds a read-only snapshot of the project's storage configs, written by blocks pull --only storage. Read it for context before listing things one by one; check its _meta.tenantId and _meta.pulledAt, and pull again if it's stale or after you change anything. Never edit it to change the project: editing does nothing, so use the commands below. Secret fields in it are ***.
This skill manages the storage configuration record itself — which cloud provider (or local/SFTP storage) a named configuration points at, and the connection details needed to reach it. It does not upload, download, browse, share, version, move, or trash objects; those runtime concerns belong to blocks-data-storage.
CLI-only, no SDK path. There is no @seliseblocks/client method for reading or writing a storage configuration's own fields. Runtime storage calls select an existing record by configurationName. If the user wants to manipulate a file/directory or its access policies, hand off to blocks-data-storage.
Prerequisite: a project is selected (blocks use <tenantId>). If login/project state is unknown, run the blocks-bootstrap skill first.
All four commands require an impersonated project token — there is no account-token path for this surface, consistent with other project-scoped admin commands (secrets *, data config *, etc.).
| Command | Notes |
|---|---|
blocks storage config list | No parameters beyond the selected project. Read-only. |
blocks storage config get <name> | <name> (positional) or --name (required if no positional arg). Read-only. |
blocks storage config save | Upsert — create or update a configuration. Mutating. |
blocks storage config delete <name> | <name> (positional) or --name (required if no positional arg). Mutating. |
blocks storage config list --json
blocks storage config get Default --json
blocks storage config get --name Default --json
list/get never return a secret value. Each secret has a status instead: connectionStringStatus, secretKeyStatus, accessKeyStatus, passwordStatus, sftpSecretKeyStatus, each one of none (not set for this provider), active, locked, archived, missing, unavailable. archived or missing means file calls on that configuration fail until it is deleted and created again with a new secret.
storage config save — fieldssave builds its request body from --body/--file (a raw JSON object, spread first) merged with these convenience flags (later, so they win if both are given):
| Flag | Body field |
|---|---|
--name | name |
--item-id | itemId |
--strategy | storageStrategy |
--host | host |
--port | port |
--region-endpoint | cloudStorageRegionEndPoint |
--connection-string | connectionString |
--access-key | accessKey |
--secret-key | secretKey |
--username | userName |
--password | password |
--remote-base-path | remoteBasePath |
--update (boolean) | updateRequest |
--upload-url-expiry-seconds | uploadUrlExpirySeconds (1–604800; blocks-data default 600) |
--download-url-expiry-seconds | downloadUrlExpirySeconds (1–604800; default 300) |
--max-file-size-bytes | maxFileSizeInBytes (at most 50 MB; default 5 MiB) |
--upload-completion-required-for Public,Private | uploadCompletionRequiredFor — uploads with these access modifiers land in quarantine until data files complete-upload verifies them; --upload-completion-required-for= clears it |
Unset flags are dropped (compact), so they never overwrite fields already present in a --body/--file payload. save is a create-or-update in one command, not two separate verbs — pass --item-id with --update when modifying an existing configuration, omit both to create a new one.
Once a configuration exists, only the four upload settings can change. The provider identity and credentials (--strategy, --connection-string, --access-key, --secret-key, --host, --port, --username, --password, --region-endpoint, --remote-base-path) are fixed at create: blocks-os drops them on an update and still answers success, so the CLI refuses them on --update. To change provider or rotate its credentials, delete the configuration and create it again. An update reads the stored record and carries the upload settings you don't pass, because the server resets any that are left out. A create whose --name is already taken is refused (by the CLI on the live run, and by blocks-os); use --update --item-id <id> instead.
blocks storage config save --name Default --strategy AzureBlob \
--host mystorageaccount.blob.core.windows.net --region-endpoint eu-west-1 \
--access-key <key> --secret-key <secret> --dry-run --json
blocks storage config save --name Default --strategy AzureBlob \
--host mystorageaccount.blob.core.windows.net --region-endpoint eu-west-1 \
--access-key <key> --secret-key <secret> --yes --json
# Change an existing configuration's upload settings (the only fields an update can change)
blocks storage config save --item-id <id> --update --max-file-size-bytes 10485760 \
--upload-completion-required-for Public,Private --dry-run --json
blocks storage config save --item-id <id> --update --max-file-size-bytes 10485760 \
--upload-completion-required-for Public,Private --yes --json
--dry-run before --yes — alwaysBoth mutating commands (save, delete) follow the standard blocks mutation discipline: --dry-run prints what would be sent and returns without mutating anything (an --update dry-run still reads the stored record so it can show the merged body, and reports target: "update"); --yes skips the interactive confirmation prompt and sends the request for real. Omitting both drops into an interactive "Type 'yes' to continue" prompt — not viable in a scripted/agent context, so always pass one or the other explicitly.
blocks storage config delete Default --dry-run --json
blocks storage config delete Default --yes --json
save's dry-run output redacts secret-shaped fields before printing (accessKey, connectionString, password, secretKey become "***") — this redaction is dry-run-preview only, it does not change what's actually sent when you run with --yes, get/list output is redacted the same way (see Gotchas).
get/list show secret status, not secrets. blocks-os never returns a secret value; the CLI still redacts accessKey/connectionString/password/secretKey/sftpSecretKey if an older server sends one.save is upsert, not separate create/update commands. Whether a call creates or updates is determined by --update --item-id, not by a different command name.blocks storage config * never touches file bytes, directory hierarchy, versions, trash, sharing, or ACLs. Those belong to blocks-data-storage, using a configurationName that a storage config already defines.get/delete accept the configuration name as either the first positional argument or --name; only one is required, not both.secrets * and data config *, none of these four commands run against the account token — a project must be selected first (blocks use <tenantId>).storage config save --strategy AzureBlob ....storage config list.Default storage configuration." → storage config get Default.storage config delete <name> and storage config save again with the new key.storage config save --item-id <id> --update --max-file-size-bytes 10485760 --upload-completion-required-for Public,Private.storage config save --strategy <local strategy value> --host ... --port ... (confirm the exact strategy value expected by the project rather than guessing).storage config delete <name>.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocks25 skills in this plugin
/blocksStart here for any SELISE Blocks work. Routes a plain-language request — sign-in and projects, SSO, users, roles, MFA, data schemas and records, file storage, translations, mail, notifications, workflows, functions, proxies, secrets, deployments — to the right Blocks skill, and carries the rules every Blocks skill follows: the blocks CLI and @seliseblocks/client SDK only, never raw HTTP to the platform API; --dry-run before --yes; never read the CLI's credential files; when to report a finding. Use whenever work touches SELISE Blocks, the blocks CLI, or @seliseblocks/client./blocks-bootstrapGet a user from any starting state to a working SELISE Blocks setup — CLI installed, logged in, project selected — using the `blocks` CLI, never raw fetch/curl. Detects state from `blocks auth status --json` and `blocks doctor --json`, then routes to a flow: select or create a project, inventory a project that already exists, resolve the app's OIDC client, add a social identity provider, create the first end user, scaffold a new web app, or wire an existing one. Use for a new user, for `not_logged_in`/`project_not_selected`, or whenever login/project/app state is unclear./blocks-captchaConfigure the login captcha of a SELISE Blocks project through the blocks CLI ('captcha list/get/save/enable/disable/delete'): register a reCAPTCHA or hCaptcha site key and secret, switch it on or off, see which configuration blocks-iam actually enforces at login, and retire one. CLI-only, project-scoped; the captcha secret is stored server-side and never shown. Use for 'enable captcha on login', 'change the recaptcha keys', 'why is captcha not showing', 'turn captcha off'./blocks-data-gateway-configurationConfigure a SELISE Blocks project's data model via the blocks CLI — never raw fetch/curl against api.seliseblocks.com. Covers data-source config (data config get/create/update), schema authoring and push (data schema list/pull/push, plus granular get/fields/info/indexes commands), data-access policies (data rules pull/deploy/policy), field-level validation rules (data validation *), and reloading so changes go live (data reload, or the composed data sync). Use for defining, editing, securing, validating, or reloading a project's DATA MODEL — schema fields, access policies, and validation rules./blocks-data-gateway-crudImplement create/read/update/delete against a SELISE Blocks project's runtime Data Gateway using the @seliseblocks/client SDK. Use data.collection(schemaName) for straightforward per-item CRUD, data.graphql() for joins or custom query shapes, and data.schemas.*/data.validations.* for schema/validation metadata. Shows how to wire CRUD into the React 18 + Vite + TanStack Query app that blocks new web scaffolds. Use whenever the user wants to read or write actual records through a Blocks Data schema from app code./blocks-data-storageBuild file and document-management features on SELISE Blocks Data: upload/download, directory trees, cursor-paginated browsing and search, file versions, rename/move/copy, soft delete/trash/restore, sharing, access policies, and inheritance. Use for attachments, file browsers, folders, shared files, permissions, or version history. Use 'blocks data files *' for terminal/admin work and @seliseblocks/client data.files/data.directories/data.objects for app code.Other plugins' skills for the same job