filescom-key-lifecycle-rules

SkillFiles & storage

A KeyLifecycleRule represents a rule that applies to API keys, GPG keys, and SSH keys (also called User Public Keys) based on their inactivity or age.

Use filescom-key-lifecycle-rules in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add filescom-key-lifecycle-rules and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the filescom-key-lifecycle-rules skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

filescom-key-lifecycle-rulesStart free

What this skill tells your AI

The instructions your AI receives, as published by files-com/files-cli in skills/filescom-key-lifecycle-rules/SKILL.md and read by Ahel’s review.

A KeyLifecycleRule represents a rule that applies to API keys, GPG keys, and SSH keys (also called User Public Keys) based on their inactivity or age.

Keys that have been unused for the specified number of days will be deleted. SSH keys can also be configured to expire after a specified number of days. SSH key expiration applies only to User Public Keys used for inbound SFTP/SSH login, not Remote Server outbound SSH keys.

All subcommands also accept the flags documented in CONTEXT.md (--api-key, --format, --workspace-id, --debug, and the pagination flags --cursor / --per-page / --max-pages on list). Those are not repeated below.

Commands

files-cli key-lifecycle-rules list

List Key Lifecycle Rules.

FlagTypeDescription
--sort-byobjectIf set, sort records by the specified field in either asc or desc direction. Valid fields are workspace_id and key_type.
--filterobjectIf set, return records where the specified field is equal to the supplied value. Valid fields are key_type and workspace_id. Valid field combinations are [ workspace_id, key_type ].

files-cli key-lifecycle-rules find

Show Key Lifecycle Rule.

FlagTypeDescription
--idint64Key Lifecycle Rule ID. Required.

files-cli key-lifecycle-rules create

Create Key Lifecycle Rule.

FlagTypeDescription
--apply-to-all-workspacesboolIf true, a default-workspace rule also applies to keys in all workspaces.
--expiration-daysint64Number of days after creation before an SSH key expires. Applies only to SSH keys.
--key-typeenumKey type for which the rule will apply (gpg, ssh, or api). One of: gpg, ssh, api.
--inactivity-daysint64Number of days of inactivity before the rule applies.
--namestringKey Lifecycle Rule name
--workspace-idint64Workspace ID. 0 means the default workspace.

files-cli key-lifecycle-rules update

Update Key Lifecycle Rule.

FlagTypeDescription
--idint64Key Lifecycle Rule ID. Required.
--apply-to-all-workspacesboolIf true, a default-workspace rule also applies to keys in all workspaces.
--expiration-daysint64Number of days after creation before an SSH key expires. Applies only to SSH keys.
--key-typeenumKey type for which the rule will apply (gpg, ssh, or api). One of: gpg, ssh, api.
--inactivity-daysint64Number of days of inactivity before the rule applies.
--namestringKey Lifecycle Rule name
--workspace-idint64Workspace ID. 0 means the default workspace.

files-cli key-lifecycle-rules delete

Delete Key Lifecycle Rule.

FlagTypeDescription
--idint64Key Lifecycle Rule ID. Required.

Signals

GitHub stars
46
Forks
4
Last commit
Oct 2026
Advanced
Item type
skill
Key
filescom-key-lifecycle-rules
Source
github.com/files-com/files-cli