Skip to content

Command: Init

Robert MacLean edited this page May 19, 2020 · 2 revisions

Init

Init helps setup the environment; if you are familiar with tools like git, init is inspired by their init command. With Init you can create either a secret.json or a score.json file.

Synopsis

twot Init [score | secrets] [--file <filename>]

or

twot init [score | secrets] [--file <filename>]

or

twot i [score | secrets] [--file <filename>]

Options

  • score: This specifies you want to create a score.json file for use with the Score and Clean commands. It is mutually exclusive with the secrets option.
  • secrets: This specifies you want to create a secrets.json file, to configure Twot to use your account. It is mutually exclusive with the score option.
  • --file &lt;filename&gt;: This allows you to specify where the score or secrets option will output to, rather than using their default options.

Examples

Create a score.json file:

twot init score

Create a secrets.json file:

twot i secrets

Create a secrets.json file but save to secrets-setup.json:

twot i secrets --file secrets-setup.json