https://github.com/authorizerdev/authorizer-cli
CLI for various authorizer actions
https://github.com/authorizerdev/authorizer-cli
hactoberfest
Last synced: 11 months ago
JSON representation
CLI for various authorizer actions
- Host: GitHub
- URL: https://github.com/authorizerdev/authorizer-cli
- Owner: authorizerdev
- Created: 2022-09-28T05:37:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T05:38:32.000Z (over 2 years ago)
- Last Synced: 2025-01-13T19:39:41.088Z (about 1 year ago)
- Topics: hactoberfest
- Language: Rust
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# authorizer-cli
CLI tool for [authorizer.dev](https://authorizer.dev), use this to perform various operations on your authorizer instance.
For detailed information about all the supported operations check [docs](https://docs.authorizer.dev/)
## Getting Started
Here is a quick guide on getting started with the `authorizer-cli` tool.
### Step 1 - Create Instance
Get Authorizer URL by instantiating [Authorizer instance](/deployment) and configuring it with necessary [environment variables](/core/env).
### Step 2 - Install Binary
```sh
cargo install authorizer-cli
```
### Step 3 - Use the cli tool from your terminal.
- Invite members by uploading a csv or txt file
```sh
authorizer-cli invite-members --file-path ./authorizer_sample.csv
```
- Download sample files for usage
```sh
authorizer-cli-test download-samples --file-path .
```
- Print help message
```sh
authorizer-cli --help
```
Output:
```sh
CLI tool for authorizer
Usage: authorizer-cli [OPTIONS] [COMMAND]
Commands:
invite-members Invite users to app [--file-path ]
download-samples Download samples [--file-path ]
help Print this message or the help of the given subcommand(s)
Options:
-d, --debug... Turn debugging information on
-h, --help Print help information
-V, --version Print version information
```
Note: pass `-d` flag after command to turn ON Debug mode.
## Development
- Clone this repo
- For development use
```sh
cargo build
```
- For production use
```sh
cargo build --release
```
## Support our work
Github Sponsorship: https://github.com/sponsors/authorizerdev