Getting started
Welcome to the MTRIBES developer hub!
This document contains everything you'll need to know about integrating MTRIBES into your apps. Ready? Let's go.
Modeling
If you're new to MTRIBES and haven't modeled your Space, check out our short modeling guide.
#
SDK guidesFirst complete these two steps. This initial setup is common across all SDKs.
Next, follow the specific documentation for your platform to complete the integration.
We're working hard on expanding our platform support, so stay tuned for updates.
#
CLI installationThis is the first step. We've purpose-built a command-line-interface (CLI) to automate most of the process, and help integrate your MTRIBES Space quickly and accurately.
#
CLI install- macOS
- Windows
#
CLI upgrade- macOS
- Windows
#
Space integrationThis is the second step. Let's get you connected with the MTRIBES Space you want to target before diving into the code.
#
Space setupWith the CLI installed, you can now set up your Space integration by running the following command in the root folder of your project.
mtribes setup
The first time you run setup
, you'll be redirected to the MTRIBES sign-in page
to authenticate with your credentials.
Once authenticated, follow the remaining prompts to configure your connection.
- Select the MTRIBES organization and Space to integrate with
- Choose a target language if the default is incorrect
- Decide where code should be output to, if the default location is incorrect
The CLI will now generate Space specific integration code for you to use.
An mtribes.yaml
file containing your saved preferences will be written to the root
of your project .
Both mtribes.yaml
and the generated code should be committed to source
control.
Dependencies
Where possible, the CLI will automatically add a dependency to our core SDK library, which the generated code will leverage.
#
Space updateAs updates are made to Collection, Experience and Section templates in your MTRIBES Space, you'll need to synchronize these changes with your codebase so you can integrate them.
You can regenerate code at any point, so that it reflects the latest state of your Space
via the CLI's update
command.
mtribes update