Skip to content

Document cli configuration via JSON #214

@Nadegamra

Description

@Nadegamra

It is possible to configure some things via JSON file such as:

  • api url
  • issuer url
  • client id
  • client secret

However, this does not seem to be documented anywhere. Relevant code:

constructor(configDir: string) {
const configPath = path.join(configDir, "config.json");
if (fs.existsSync(configPath)) {
const file = fs.readFileSync(configPath, "utf8");
const configJson = JSON.parse(file);
this.apiUrl = configJson.apiUrl;
this.clientId = configJson.clientId;
this.clientSecret = configJson.clientSecret;
this.issuerUrl = configJson.issuerUrl;
}

Location of this file in different operating systems should also be documented. Necessary info can be found here: https://oclif.io/docs/config/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions