Support more than one ForgeBox-based endpoint in preparation of ForgeBox Enterprise. Each endpoint has
An API URL
Any number of API Tokens which have been authenticated
Any interactions CommandBox makes with a specific endpoint will use the default APIToken for that specific endpoint. All settings for endpoints and their stored tokens will be stored in CommandBox's Config Settings.
Add a new ForgeBox endpoint:
Manage your endpoints
The forgebox endpoint list command will show the following for each endpoint:
Logged in User (if applicable)
Whether that endpoint is the default forgebox endpoint
Set a specific ForgeBox endpoint to be default
All ForgeBox commands such as "forgebox search" and "forgebox publish" will obey the default forgebox endpoint. All ForgeBox commands also have a new endpointName parameter that can be specified to direct the command which forgebox endpoint to use:
All endpointName parameters will have tab completion that includes all existing ForgeBox endpoints.
Packages installed from a custom ForgeBox endpoint, even if implicitly via the default endpoint setting will be stored as such in the box.json: