Back to Meshery

Authenticating Meshery via CLI

docs/static/v0.8/guides/mesheryctl/authenticate-with-meshery-via-cli/index.html

1.0.191.6 KB
Original Source

Authenticating Meshery via CLI

To authenticate Meshery through mesheryctl, the Meshery CLI, you will use the mesheryctl system login command. On executing this command, you will be provided with a list of providers to choose from. You can then select a Provider of your choice to complete the authentication and authorization process.

As of this writing, you will be presented with two providers, Layer5 and None.

Use the arrow keys to navigate: ↓ ↑ → ← 
? Select a Provider: 
  ▸ Layer5
    None
  • Selecting Layer5 will open a browser to complete the login and authentication process with Layer5 cloud. On successful authentication, you can close the window and return to the command prompt.

  • Selecting None will create an empty auth.json file. All your work remains local and ephemeral.

If mesheryctl is running in a system that does not have a browser, you can download an auth token file from your Layer5 cloud account and copy it into the .meshery folder in your home directory. The following steps show how you can generate and download a token:

  1. Navigate to https://cloud.layer5.io/security/tokens and sign-in. Ensure you are in the right organization and click Create.

  2. Provide a token name and purpose. Click Create to generate.

  3. Click the Download icon to download the auth.json file.

Then run mesheryctl system check to ensure you do not see an authentication error.

For an exhaustive list of mesheryctl commands and syntax, visit mesheryctl Command Reference.

Recent Discussions with "mesheryctl" Tag