Command

forjr login

Keeps the key of a server for publishing, pushing and pulling, in keys.json of the runner's folder, under a name: the mode of the server, unless --name gives another.

Usage

Text
forjr login <address> [--name <name>] [--insecure <host>]

Options

OptionMeans
--name <name>The name the key is kept under, which --to of forjr publish, forjr push and forjr pull takes. Left out, it is the mode of the server: live or test
--insecure <host>Reaches that host over a plain connection, for two machines on a network of their own

Example

Text
forjr access key add laptop --right push        # on the server, which prints the key once
forjr login https://shop.example.com            # asks for that key
forjr login https://test.shop.example.com       # kept as test
forjr push --to test

It asks for the key without showing it, or takes it from FORJR_KEY where FORJR_AT names this server beside it: a key of another server is never sent. With no person at the keys, the key may also be handed in on the input. The key is tried on the server first: a key it does not take is not kept. A key of the right operate is tried on the run commands of the server, which alone it reaches, and is kept for forjr runs --at and forjr logs --at. keys.json is readable only by the current user, and is read only when it is an ordinary file that the current user owns. A project that has a test server and a live one keeps a key of each, each under its mode.

Output

With --json:

JSON
{ "ok": true, "value": { "server": "https://shop.example.com", "name": "live", "mode": "live" }, "findings": [] }

Errors

code.F9104 for a key that the server does not take. A command that fails ends with 2.

See also

command.push, command.pull, command.access