nctl login nch
nctl login nch
Sign in to Nirmata Control Hub (NCH)
nctl login nch [flags]
Examples
# Login to Nirmata Control Hub (NCH) using an email and API key
nctl login nch --userid user@example.com --token my-api-key
# Login to Nirmata using a specific server URL
nctl login nch --userid user@example.com --token my-api-key --url https://nirmata.example.com
# Login using a configuration file
nctl login nch --file /path/to/config.yaml
# Login interactively (prompt for email and API key)
nctl login nch
Options
-f, --file string the configuration file (defaults to $HOME/.nirmata/config)
-h, --help help for nch
--insecure allow connection to an address with a self-signed or non-verifiable certificate (not recommended)
--token string Nirmata API Login Key (env NIRMATA_TOKEN)
--url string Nirmata server base URL (env NIRMATA_URL)
--userid string user id (email)
Options inherited from parent commands
-v, --v Level number for the log level verbosity
SEE ALSO
- nctl login - Provide authentication details to login