Skip to main content

CLI App Login

CLI commands are downloaded to your machine when you download Juice. To initiate the CLI app, simply open a terminal window from your device's application manager.

To log in:

  1. Run the following command:

    ./juice login 
  2. If you're not redirected to a browser window, copy the link that populates and paste it into your browser. Then, log in with your JuiceID.

  3. Wait for confirmation before closing your browser window.

Once your login is confirmed, the CLI will update your status to logged in. If you need more persistent access to Juice for scriptable or automated projects, you can also use an M2M token to log in.

To log in with a machine-to-machine (m2m) token:

  1. Run the following command to generate the token:

    ./juice m2m create -d "<reference name of your choice>" 
  2. Save the token in a secure private location.

  3. To log in, run the command:

    ./juice login -t "<reference name of your generated token>" 
tip

Use m2m list to show available tokens.

To destroy a token use m2m remove "<reference name of your generated token>".