Login command
The login command is used to store an elmah.io API key locally. Sub-sequent commands will use the privately stored API key instead of requiring an --apiKey option. If specified, the --proxyHost and --proxyPort options are only used to test the API key on this command and will need to be specified again when running other commands.
Using an environment variable instead
For CI pipelines and other non-interactive scenarios, you can skip login entirely by setting the ELMAHIO_API_KEY environment variable. All commands fall back to it when --apiKey isn't specified and no key has been stored locally:
set ELMAHIO_API_KEY=API_KEY
elmahio logs list
Precedence is --apiKey > ELMAHIO_API_KEY > the key stored via login.
Usage
> elmahio login --help
Description:
Authenticate with elmah.io and store your API key locally
Usage:
elmahio login [options]
Options:
--apiKey <apiKey> An API key with permission to execute commands
--proxyHost <proxyHost> A hostname or IP for a proxy to use to call elmah.io
--proxyPort <proxyPort> A port number for a proxy to use to call elmah.io
-?, -h, --help Show help and usage information
Example
elmahio login --apiKey API_KEY
This article was brought to you by the elmah.io team. elmah.io is the best error management system for .NET web applications. We monitor your website, alert you when errors start happening, and help you fix errors fast.
See how we can help you monitor your website for crashes Monitor your website