nctl login nch
nctl login nch
Sign in to Nirmata Control Hub
nctl login nch [flags]
Examples
# Login to Nirmata Control Hub 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 a Nirmata server with a insecure certificate (not recommended)
--token string the Nirmata API Login Key (env NIRMATA_TOKEN)
--url string the Nirmata server base URL (env NIRMATA_URL)
--userid string user id (email)
```text
### Options inherited from parent commands
```text
-v, --v Level number for the log level verbosity
SEE ALSO
- nctl login - Provide authentication details to login
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.