added
Configure mabl CLI with API key
almost 6 years ago by Geoff Cooney
The mabl CLI can now be configured with API key authorization. This makes the CLI easier to use in CI/CD environments.
To configure the CLI:
$ mabl auth activate-key <YOUR-API-KEY>
Now you should be able to interact with the CLI like normal.
$ mabl auth activate-key $YOUR_API_KEY
$ mabl auth environments list
┌───────────────────────────┬───────────────────────┬─────────────────────────┐
│ ID │ Name │ Created time │
├───────────────────────────┼───────────────────────┼─────────────────────────┤
│ j8tfo2dWd7WSigXcO91fex-e │ Acme app │ Nov 15th 2017, 15:42:55 │
├───────────────────────────┼───────────────────────┼─────────────────────────┤
│ I9hfokdWd7WSigXcO91feA-e │ ABC │ Oct 31st 2019, 00:42:21 │
└───────────────────────────┴───────────────────────┴─────────────────────────┘
And if you happen to be using GitHub Actions to build your code, you can use or setup mabl cli action to automatically configure the CLI for use in subsequent build steps. See the GitHub Action page for more detail.
You can find your API key under Settings > API
in the mabl app.