Artifacts
Manage Artifacts namespaces, repositories, and repo-scoped tokens using Wrangler. Private beta
List Artifacts namespaces
npx wrangler artifacts namespaces listpnpm wrangler artifacts namespaces listyarn wrangler artifacts namespaces list-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
Get an Artifacts namespace
npx wrangler artifacts namespaces get [NAME]pnpm wrangler artifacts namespaces get [NAME]yarn wrangler artifacts namespaces get [NAME]-
[NAME]stringrequiredThe Artifacts namespace name
-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
Create an Artifacts repository
npx wrangler artifacts repos create [NAME]pnpm wrangler artifacts repos create [NAME]yarn wrangler artifacts repos create [NAME]-
[NAME]stringrequiredThe Artifacts repository name
-
--namespacestringrequiredThe Artifacts namespace name
-
--descriptionstringAn optional description for the repository
-
--default-branchstringThe default branch for the repository
-
--read-onlybooleanCreate the repository as read-only
-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
List Artifacts repositories in a namespace
npx wrangler artifacts repos listpnpm wrangler artifacts repos listyarn wrangler artifacts repos list-
--namespacestringrequiredThe Artifacts namespace name
-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
Get an Artifacts repository
npx wrangler artifacts repos get [NAME]pnpm wrangler artifacts repos get [NAME]yarn wrangler artifacts repos get [NAME]-
[NAME]stringrequiredThe Artifacts repository name
-
--namespacestringrequiredThe Artifacts namespace name
-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
Delete an Artifacts repository
npx wrangler artifacts repos delete [NAME]pnpm wrangler artifacts repos delete [NAME]yarn wrangler artifacts repos delete [NAME]-
[NAME]stringrequiredThe Artifacts repository name
-
--namespacestringrequiredThe Artifacts namespace name
-
--forcebooleanalias: --y default: falseSkip confirmation
-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
Issue a repo-scoped Artifacts token
npx wrangler artifacts repos issue-token [REPO]pnpm wrangler artifacts repos issue-token [REPO]yarn wrangler artifacts repos issue-token [REPO]-
[REPO]stringrequiredThe Artifacts repository name
-
--namespacestringrequiredThe Artifacts namespace name
-
--scopestringThe token scope
-
--ttlnumberThe token TTL in seconds
-
--jsonbooleandefault: falseReturn output as JSON
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources