Request an invite
Docs menu

osmates credential change

Change a credential's variable, its value, or its hosts with a new value.

Usage
osmates credential change [<options>] <name>

Host options replace every host and place of the credential, and read its value again, so that only someone who has it can send it elsewhere. --value reads a new value alone.

Arguments

<name>Required

The credential's name.

--host <host[:port]>Repeatable

A host that takes the value in --header or --query; repeat for more.

--header <field>

The header field the value goes in, such as Authorization.

--prefix <text>

What comes before the value in the header, such as "Bearer ".

--query <parameter>

The query parameter the value goes in.

--basic-host <host[:port]>Repeatable

A host that takes the value as Basic authentication's password; repeat for more.

--variable <variable>

A new variable for the placeholder.

--no-variable

Remove the variable.

--value

Read a new value from standard input or the terminal.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/credential/change.json

changedAtstring (date-time)Required
createdAtstring (date-time)Required
grantsarray of objectsRequired
grants[].activebooleanRequired
grants[].endedobject
grants[].expiryobject or stringRequired

One of machineStop, never, or an object that holds one key: at.

grants[].grantedAtstring (date-time)Required
grants[].includesClonesbooleanRequired
grants[].machinestringRequired
grants[].machineIDstring (uuid)Required
grants[].placeholderstringRequired
idstring (uuid)Required
namestringRequired
usesarray of objectsRequired
uses[].hostobjectRequired
uses[].placeobject or stringRequired

One of basic, or an object that holds one key: header or query.

variablestring

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page