1.4. Setting a Default Organization and Location
Many hammer commands are organization specific. You can set a default organization and location for hammer commands so that you do not have to specify them every time with the --organization and --location options.
Specifying a default organization is useful when you mostly manage a single organization, as it makes your commands shorter. However, when you switch to a different organization, you must use hammer with the --organization option to specify it.
Procedure
To set a default organization and location, complete the following steps:
To set a default organization, enter the following command:
# hammer defaults add --param-name organization \ --param-value "Your_Organization"You can find the name of your organization with the
hammer organization listcommand.Optional: To set a default location, enter the following command:
# hammer defaults add --param-name location \ --param-value 'Your_Location"You can find the name of your location with the
hammer location listcommand.To verify the currently specified default settings, enter the following command:
# hammer defaults list