Skip to main content

anycloud credentials

Manage named provider credentials. Alias: anycloud creds.

anycloud credentials new [name] [provider options]
anycloud credentials list [--json]
anycloud credentials edit <name> [provider options]
anycloud credentials delete [name] [--force]
OptionApplies toDescription
--provider aws|azure|gcp|lambda|vastnewSelect the provider without the interactive picker
--overwritenewReplace an existing credential with the same name
--access-key-id, --secret-access-keynew,editSet AWS fields
--application-id, --secretnew,editSet Azure application fields
--subscription-id, --directory-idnew,editSet Azure account fields
--project-id, --client-emailnew,editSet GCP service-account fields
--private-keynew,editSet the GCP service-account private key
--key-file PATHeditRead replacement GCP service-account fields from a JSON key file
--api-keynew,editSet a Lambda Labs or Vast.ai key (edit currently supports Lambda)
--jsonlist[{name, cloudProvider}]; never includes secret values
-f, --forcedeleteDelete even when a non-terminal deployment references the credential

With missing provider arguments in a terminal, new opens a wizard. The wizard can inspect local provider profiles, open a browser login, create a least-privilege identity, or accept pasted values.

edit requires an existing name and updates only the provider fields supplied as flags; it does not open a wizard or change the provider. delete without a name opens a picker in a terminal. Deletion is blocked while a non-terminal deployment references the credential unless --force is supplied.

Non-interactive provider fields

# AWS
anycloud credentials new production-aws \
--provider aws \
--access-key-id AKIA... \
--secret-access-key ...

# Azure service principal
anycloud credentials new production-azure \
--provider azure \
--application-id ... \
--secret ... \
--subscription-id ... \
--directory-id ...

# GCP service account
anycloud credentials new production-gcp \
--provider gcp \
--project-id my-project \
--client-email service-account@my-project.iam.gserviceaccount.com \
--private-key "..."

# Lambda
anycloud credentials new production-lambda \
--provider lambda \
--api-key ...

# Vast.ai
anycloud credentials new production-vast \
--provider vast \
--api-key ...

Secret provider fields accept their documented environment fallbacks; an explicit CLI flag wins when creating credentials. edit uses explicit flags only. Azure CLI authentication represents a user session, not an existing service-principal secret, so the wizard can create a service principal from that login but cannot recover an existing secret from it.

For selection precedence and storage identities, see Cloud Credentials and Configuration.