Corbado CLI
The Corbado CLI is used to receive webhook requests from Corbado on your local machine during testing and development.
Overview
The Corbado CLI (command line interface) is a tool which you can run locally on your command line to interact with the Corbado platform. It provides multiple commands and runs on Windows, MacOS and Linux.
The Corbado CLI is written in Go and hosted on GitHub.
Installation
To install the Corbado CLI we provide (among the source code version) pre-compiled binaries on our GitHub release page.
Authentication
The Corbado CLI needs to authenticate. For this you need to provide your projectID
and a cliSecret
. There is exactly one cliSecret
per project and you can find it on our developer panel.
There are multiple authentication methods. They are checked in order, first come first serve. So if you provide flags they overwrite environment variables and they overwrite the credential file.
Method | Description |
---|---|
Flags | You can provide the projectID and cliSecret via --projectID pro-XXX and --cliSecret XXX |
Environment variables | You can set the projectID in the environment variable CORBADO_PROJECT_ID and the cliSecret in CORBADO_CLI_SECRET |
Credential file | You can save the projectID and cliSecret to a credential file locally, see login and logout commands |
Commands
Currently the following commands are provided:
Command | |
---|---|
login | The login command asks for your projectID and cliSecret and saves them to a local credentials file |
logout | The logout command just logs out by deleting the credentials file |
subscribe | The subscribe command lets you receive webhook requests locally by subscribing to our tunnel server |