Managing accounts - GetmeUK/hangar51 GitHub Wiki
Managing accounts
Hanger51 can be configured to manage assets for multiple accounts, using a local backend that means each account gets its own folder, on s3 that means each account gets its own bucket (and potentially s3 account).
An account would typically be created for each client and/or project, each account is given an API key which can then be used to authenticate a call to the API when managing assets.
There is no HTTP interface for managing accounts, account management is done using fabric and the manage (m) command. Below is a list of the commands for managing accounts:
Add an account
fab m:'add-account {name} {backend}'
then follow instructions.
Update the backend configuration for an account
fab m:'config-account {name}'
then follow instructions.
Delete an account
fab m:'delete-account {name}'
then follow instructions.
Generate a new API key for an account
fab m:'generate-new-api-key {name}'
List accounts
fab m:'list-accounts -q {query}'
List the available storage backends
fab m:'list-backends'
Rename an account
fab m:'rename-account {name} {new_name}'
View the details of an account
fab m:'view-account {name}'