- Make sure you are running Ubuntu and have a webbrowser installed
sudo apt install libsecret-1-dev
yarn install
ornpm install
- Register the CLI as a web client in your Zoho Developer Console. The domain is localhost:37195 and the allowed callback url is http://localhost:37195/callback.
- Provide your client's API key (API_KEY) and secret (API_SECRET) as environment variables or in a .env file.
- Run
node index get <secretname> <fieldname>
to get a password from Zoho Vault. This will open a webbrowser and will complete after you granted access.
This CLI will listen on port 37195 shortly to complete the OAuth flow. If this port is blocked, the CLI will not work. The access token for Zoho Vault will be stored in your Gnome Keyring.
Code | Description |
---|---|
1 | Unknown Error |
9 | Request for Login failed |
10 | Request for Secret to Zoho Vault failed |
11 | Secret not found in Zoho Vault |
12 | Secret has no such Field |