fix: conform articles to the template

This commit is contained in:
Michele Cereda
2023-05-25 23:55:23 +02:00
parent b22c05f31f
commit d02c7698ca
11 changed files with 143 additions and 48 deletions

View File

@@ -1,19 +1,26 @@
# 1password-cli
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Gotchas](#gotchas)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
```sh
# installation
brew cask install 1password-cli
brew install --cask '1password-cli'
# first login
op signin company.1password.com user.name@company.com
op signin 'company.1password.com' 'user.name@company.com'
# subsequent logins
op signin company
op signin 'company'
# automatically set environment variables
# needed to run the export command manually
eval $(op signin company)
eval "$(op signin 'company')"
# show all the items in the account
op list items
@@ -24,7 +31,7 @@ op list items
- After you have signed in the first time, you can sign in again using your account shorthand, which is your sign-in address subdomain (in this example, _company_); `op signin` will prompt you for your password and output a command that can save your session token to an environment variable:
```sh
op signin company
op signin 'company'
```
- Session tokens expire after 30 minutes of inactivity, after which you'll need to sign in again
@@ -33,10 +40,19 @@ op list items
- [CLI guide]
[cli guide]: https://support.1password.com/command-line/
## Sources
All the references in the [further readings] section, plus the following:
- [CLI getting started] guide
<!-- project's references -->
[cli getting started]: https://support.1password.com/command-line-getting-started/
[cli guide]: https://support.1password.com/command-line/
<!-- in-article references -->
[further readings]: #further-readings
<!-- internal references -->
<!-- external references -->