This repository has been archived by the owner on May 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docs and Add Examples For Some Commands
- Loading branch information
1 parent
8b7af32
commit 7a543ab
Showing
8 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,9 @@ import ( | |
// byEmailCmd represents the byEmail command | ||
var byEmailCmd = &cobra.Command{ | ||
Use: "byEmail", | ||
Aliases: []string{"email"}, | ||
Short: "find a user by email address", | ||
Aliases: []string{"email", "by-email"}, | ||
Short: "Find a Firebase Auth user by email address", | ||
Example: `kamanda auth find by-email [email protected]`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
// args = list of UIDs | ||
if len(args) == 0 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## kamanda auth | ||
|
||
Perform Firebase Auth Operations | ||
|
||
### Synopsis | ||
|
||
Perform Firebase Auth Operations | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for auth | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string config file (default is $HOME/.kamanda/config.json) | ||
-o, --output string The format in which data will be outputted in [text, json, yaml] | ||
-P, --project string The firebase project to use (default "default") | ||
--token string firebase token to use for authentication | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kamanda](kamanda.md) - Kamanda is an extender Firebase Tools CLI | ||
* [kamanda auth addUser](kamanda_auth_addUser.md) - Add a new Firebase Email/Password user (Accepts Custom Claims) | ||
* [kamanda auth addUsers](kamanda_auth_addUsers.md) - Add multiple users from file (JSON/YAML) | ||
* [kamanda auth customClaims](kamanda_auth_customClaims.md) - Add custom claims to an existing firebase user or users through their UIDs | ||
* [kamanda auth deleteUsers](kamanda_auth_deleteUsers.md) - Delete multiple Firebase Auth User by their UID | ||
* [kamanda auth find](kamanda_auth_find.md) - Find a a Firebase Auth user by their Firebase UID. | ||
* [kamanda auth users](kamanda_auth_users.md) - Get a list of users in firebase auth. | ||
|
||
###### Auto generated by spf13/cobra on 17-Apr-2020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
## kamanda auth find byEmail | ||
|
||
find a user by email address | ||
Find a Firebase Auth user by email address | ||
|
||
### Synopsis | ||
|
||
find a user by email address | ||
Find a Firebase Auth user by email address | ||
|
||
``` | ||
kamanda auth find byEmail [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
kamanda auth find by-email [email protected] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
|
@@ -27,6 +33,6 @@ kamanda auth find byEmail [flags] | |
|
||
### SEE ALSO | ||
|
||
* [kamanda auth find](kamanda_auth_find.md) - Find a user by uid. To find user by email or by phone use `find byEmail` or `find byPhone` | ||
* [kamanda auth find](kamanda_auth_find.md) - Find a a Firebase Auth user by their Firebase UID. | ||
|
||
###### Auto generated by spf13/cobra on 17-Apr-2020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters