nsc artifact extend

Extend the expiration of an artifact.

artifact extend pushes out the expiration of a finalized artifact in this workspace.

This enables dynamic, access-based retention: create artifacts with a short expiration and extend it whenever they are accessed.

At least one of --by or --ensure_minimum must be set. When both are set, --by is applied first and --ensure_minimum then acts as a lower bound on the result.

Usage

$
nsc artifact extend <path> [--by <duration>] [--ensure_minimum <duration>] [--namespace <namespace>]

Example

% nsc artifact extend target.txt --by 24h
Extended target.txt (namespace main); now expires 2024-02-16T10:30:00Z.

Options

--by <duration>

Extend the current expiration by this duration, relative to the artifact's current expiration.

--ensure_minimum <duration>

Ensure the artifact expires no sooner than this duration from now.

--namespace <namespace>

Namespace of the artifact. Defaults to "main".

Last updated