tms server-enable
Enables or disables a server in the Smart Setup configuration.
Synopsis
tms server-enable <name> [<enable>] [<global-options>]
Description
Changes the enabled state of an existing server in tms.config.yaml, or in the file specified with -config-source. If the specified server does not exist in that file, the command returns an error.
The command loads only the file it writes. A server defined only in tms.config.local.yaml or tms.config.global.yaml appears in tms server-list, but you need to pass -config-source to change it.
Disabled servers are not contacted during tms fetch, tms install, or tms update operations.
Arguments
| Argument | Description |
|---|---|
<name> |
Name of the server to enable or disable. Required. |
[<enable>] |
true to enable the server, false to disable it. Defaults to true if omitted. |
Options
| Option | Description |
|---|---|
-config-source:<source> |
The configuration file that defines the server: main (tms.config.yaml), local (tms.config.local.yaml) or global (tms.config.global.yaml in the .smartsetup folder of your user profile). Defaults to main. |
Global Options
See Global Options for options available to all commands.
Examples
Enables a server named community:
tms server-enable community
Disables a server named community:
tms server-enable community false