File: login.md

package info (click to toggle)
golang-github-notaryproject-notation 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,284 kB
  • sloc: sh: 346; makefile: 79; python: 60
file content (39 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# notation login

## Description

Use `notation login` to log in to an OCI registry. Users can execute `notation login` multiple times to log in multiple registries.

## Outline

```text
Log in to an OCI registry

Usage:
  notation login [flags] <server>

Flags:
  -d, --debug               debug mode
  -h, --help                help for login
      --insecure-registry   use HTTP protocol while connecting to registries. Should be used only for testing
  -p, --password string     password for registry operations (default to $NOTATION_PASSWORD if not specified)
      --password-stdin      take the password from stdin
  -u, --username string     username for registry operations (default to $NOTATION_USERNAME if not specified)
  -v, --verbose             verbose mode
```

## Usage

### Log in with provided username and password

```shell
notation login -u <username> -p <password> registry.example.com
```

### Log in using $NOTATION_USERNAME $NOTATION_PASSWORD variables

```shell
# Prerequisites:
# set environment variable NOTATION_USERNAME and NOTATION_PASSWORD
notation login registry.example.com
```