The AMPLIFY CLI config
command manages configuration values.
Settings
Name | Type | Default | Description |
---|---|---|---|
auth.clientId | string | "amplify-cli" | The global client ID to use when authenticating. You can be logged into multiple different client IDs at the same time. |
auth.serverHost | string | "localhost" | The hostname the local web server should listen on and await the successful login browser redirect. |
auth.serverPort | number | 3000 | The port number the local web server should listen on and await the successful login browser redirect. The value must be between 1024 and 65535 . |
auth.tokenRefreshThreshold | number | 0 | The number of seconds before the access token expires and should be refreshed. As long as the refresh token is not expired, a new access token can be retrieved. This setting is only useful if the access token is still valid, but almost expired and you need a valid access token for an operation in the near future. The value must be a non-negative integer. |
auth.tokenStoreType | string | "secure" | The type of store to persist the access token after authenticating. Allowed values:
|
network.httpProxy | string | The proxy server URL. This proxy server is used for both HTTP and HTTPS outbound requests. |
Usage
Actions
get
- Display a specific config settingls
,list
- Display all config settingspop
- Remove the last value in a listpush
- Add a value to the end of a listrm
,delete
- Remove a config settingset
- Change a config settingshift
- Remove the first value in a listunshift
- Add a value to the beginning of a list
Options
--json
- Output the value as JSON
get
Returns a config setting.
ls, list
Displays a list of all installed packages.
pop
Removes a value from the end of a list.
rm, delete
Deletes a config setting.
push
Adds a value to the end of a list. If there is no existing value, a new list is created. If a non-list value exists, it is converted to a list and the new value is appended.
set
Sets a config value. If a value already exists, the existing value is overwritten.
shift
Removes a value from the beginning of a list.
unshift
Adds a value to the beginning of a list. If there is no existing value, a new list is created. If a non-list value exists, it is converted to a list and the new value is prepended.