Authenticate the CLI.

Usage

sieve login

After you run this command, you will be prompted to enter your Sieve API Key. Enter you Sieve API Key and press enter to authenticate Sieve.

After logging in, your api key will be stored here: ~/.config/.sieve/config

Options

  • --help Show this message and exit.

Alternatives

As an alternative to using the sieve login command, you can set the SIEVE_API_KEY as an environment variable.

This is useful in environments where terminal interaction is not possible.

In Bash, you can set:

export SIEVE_API_KEY=YOUR_SIEVE_API_KEY

In Python, you can set:

import os
os.environ["SIEVE_API_KEY"]="YOUR_SIEVE_API_KEY"

In a Dockerfile, you can add:

ENV SIEVE_API_KEY=YOUR_SIEVE_API_KEY