Update README.md

This commit is contained in:
Kai Kriegel 2022-04-18 19:43:14 +00:00
parent 04d5578e8e
commit 1407114e4a

View File

@ -5,15 +5,16 @@ Using the cards requires a configured instance of the [fabfire adapter](https://
# Usage
## Provisioning
```shell
cargo run -- --space "innovisionlab" --instance fabaccess.innovisionlab.de --contact https://innovisionlab.de/lostandfound --token "Testuser"
```
1. Replace `--space`, `--instance` and `--contact` with your own values.
2. Set `--token` to the users username.
You can supply your own keys and Application ID with the appropriate cmdline arguments, view `--help` for more information.
1. Run the following command while replaceing `--space`, `--instance` and `--contact` with your own values and setting `--token` to the users username:
```shell
cargo run -- --space "innovisionlab" --instance fabaccess.innovisionlab.de --contact https://innovisionlab.de/lostandfound --token "Testuser"
```
You can supply your own keys and Application ID with the appropriate cmdline arguments, view `--help` for more information.
3. Add the provided `cardkey` from the output to the users entry in users.toml
## Formating Card
```shell
cargo run -- --format
```
Formats the card, deleting all files and keys.
Formats the card, deleting all files and keys.