| stoplight-id | 6hlzv1hinkq19 |
|---|
The Domo Apps CLI is the command line tool you can use to authenticate against your Domo Instance and publish your apps there.
If you are a Mac or Linux user, you will need to have Homebrew installed on your machine.
Mac:
brew install DomoApps/ryuu/domo
Linux:
brew install DomoApps/ryuu/domo-linux
If you are a Windows user, you will need to have Chocolatey installed on your machine. You may also need to run your commands in PowerShell rather than the standard command prompt.
choco install domo
The DomoApps CLI is distributed through the Homebrew and Chocolately package managers for long term support (LTS). However, there are also canary versions available via npm (Node Package Manager) that have the most recent updates that are being staged for LTS. If you have previously installed the DomoApps CLI using npm and wish to install the LTS version, you will need to uninstall the npm version first.
To uninstall the canary version so that you can install the LTS version run the following command from your terminal:
npm uninstall -g ryuu Once you have successfully uninstalled the canary version, close your terminal before proceeding. Open a new terminal and run which domo to ensure that there are no domo packages that exist within the node binaries on your machine.
If you would rather use the canary version, you can run the following command from your terminal to install it from npm:
npm install -g ryuu Confirm that domo has been installed successfully by running domo --version from the terminal. If a version number is returned then you have successfully installed the CLI.
From your command-line, run domo login and then select new instance.
Enter your assigned instance URL and then press enter. You'll then be presented with a login screen and the Domo CLI will be authorized on your instance.
Connecting Through a Proxy
If your organization has a firewall set up that blocks you from hitting Domo endpoints, you'll need to work with your network administrators to use the Domo Apps CLI with a proxy server. Otherwise, you can skip this step.
Set the CLI to route requests through your proxy with the following command:
domo proxy <Proxy server name> <Port number>Note: if your proxy requires an authentication step, you can add the -a flag (domo proxy -a), which will ask for your proxy username and will then also require the proxy password on all subsequent domo apps cli commands.
Run the following commands from your command line to set up a new Domo App project.
domo init
You can now easily integrate Domo APIs into any front-end web application. See Tutorials or API Reference for code examples. If you don’t have a pre-existing web application, in addition to the simple domo init templates, we have a number of Starter Kits you can use to get up and running quickly whether you prefer React, Angular, or Vue for front-end development.
We publish our final product to Domo using
domo publishOnce your app is deployed as a card, you can share it like you would any other content in Domo.