Set Default Google Cloud Project ID
sm_project_set.Rd
Sets the default Google Cloud Project ID for subsequent Secret Manager operations within the current R session. Functions will automatically use this project ID unless explicitly overridden.
Value
The project_id
character string, invisibly.
Called for its side-effect of setting the default project.
Examples
if (FALSE) { # \dontrun{
sm_project_set("my-production-project")
# Now, sm_secret_ls() will default to "my-production-project"
sm_project_get() # "my-production-project"
# You can always override the default for specific calls:
sm_secret_get("my-secret", project_id = "another-project")
} # }