以下示例 Bash 脚本创建了三个位置 - London, Munich, Boston - 并将其分配给 Example 组织。
ORG="Example Organization"
LOCATIONS="London Munich Boston"
for LOC in ${LOCATIONS}
do
hammer location create --name "${LOC}"
hammer location add-organization --name "${LOC}" --organization "${ORG}"
done