testform logout
testform [global options] logout [hostname]The testform logout command removes locally stored authentication credentials for the specified hostname (defaults to github.com).
Note that the API token is only removed from local storage (~/.testform.d/credentials.json); it is not revoked or destroyed on the remote server, so it will remain valid until manually revoked in your provider account.
Arguments
Section titled “Arguments”| Argument | Default | Description |
|---|---|---|
hostname |
github.com |
Domain name of the remote host whose credentials should be removed (e.g. github.com, gitlab.com). |
Usage Examples
Section titled “Usage Examples”1. Remove Default Credentials (GitHub)
Section titled “1. Remove Default Credentials (GitHub)”$ testform logoutSuccess! Removed credentials for github.com.2. Remove Credentials for a Custom Host
Section titled “2. Remove Credentials for a Custom Host”$ testform logout gitlab.comSuccess! Removed credentials for gitlab.com.If no credentials exist for the specified host:
$ testform logout gitlab.comWarning: No credentials found for gitlab.com.Exit Codes
Section titled “Exit Codes”0: Logout completed successfully.