Command line interface (CLI)

The monday CLI enables you to interact with the apps framework using a set of predefined commands to execute various operations. This document explains how to install the CLI and guides you through the supported commands. Alternatively, you can also access the CLI directly here.

Installation

To start using the CLI, you must first install it using the following command:

$ npm install -g @mondaycom/apps-cli

After installing the CLI, use the mapps init command to add your API token:

$ mapps init -t <SECRET_TOKEN>

Commands

Global flags

The following global flags are optional and can be used on any command.

Global flagDescription
--print-commandPrints the command that was executed.
--verbosePrints advanced logs.

mapps api:generate

The mapps api:generate command prepares your environment for custom query development by creating all necessary files and scripts. Make sure to run it from your root directory!

Example

$ mapps api:generate

mapps app-features:build

The mapps app-features:build command creates a new app feature build. Please note that it currently only supports custom URL or monday code build types.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's unique identifier.
-d--appFeatureIdThe app feature's unique identifier.
-i--appVersionIdThe app version's unique identifier.
-t--buildTypeThe build type: custom_url or monday_code.
-u--customUrlThe custom URL for your app's build (if applicable).

Example

$ mapps app-features:build 
// or
$ mapps app-features:build -a 123456789 -i 987654321 -d 17654321 -t custom_url -u https://www.test.com
// or 
$ mapps app-features:build -a 123456789 -i 987654321 -d 17654321 -t monday_code -u /triggers

mapps app-features:create

The mapps app-features:create command creates a new app feature.

Flags

Short Flag

Long Flag

Description

Accepted values

-a

--appId

The app's unique identifier.

-i

--appVersionId

The app version's unique identifier.

-n

--featureName

The feature's name.

-t

--featureType

The feature's type.

  • AppFeatureBoardView
  • AppFeatureAiBoardMainMenuHeader
  • AppFeatureDashboardWidget
  • AppFeatureItemMenuAction
  • AppFeatureItemBatchAction
  • AppFeatureGroupMenuAction
  • AppFeatureObject
  • AppFeatureWorkspaceView
  • AppFeatureItemView
  • AppFeatureAiDocQuickStart
  • AppFeatureAiDocTopBar
  • AppFeatureAiDocSlashCommand
  • AppFeatureDocActions
  • AppFeatureIntegration
  • AppFeatureProductView

mapps app-features:list

The mapps app-features:list command lists all features for a specific app version.

Flags

Short FlagLong FlagDescription
-a-appIdThe app's unique identifier.
-i--appVersionIdThe app version's unique identifier.

Example

$ mapps app-features:list 
// or 
$ mapps app-features:list -a 123456789 -i 987654321

mapps app-version:builds

The mapps app-version:builds command lists all builds for a specific app version.

Flags

Short FlagLong FlagDescription
-i--appVersionIdThe version's unique identifier.
$ mapps app-version:builds -t 987654321

mapps app-version:list

The mapps app-version:list command lists all versions for a particular app.

Flags

Short FlagLong FlagDescription
-i--appIdThe app's unique identifier.

Example

$ mapps app-version:list -i 1234567890

mapps app:create

The mapps app:create command creates an app.

Flags

Short FlagLong FlagDescription
-d--targetDirThe directory to create the app in.
-n--nameThe new app's name.

Example

$ mapps app:create -n NEW_APP_NAME

mapps app:deploy

The mapps app:deploy command deploys an app using a manifest file.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's unique identifier.
-d--directoryPathThe project's directory path. If excluded, the working directory will be used.
-f--forceForce push to the latest version (draft or live).
-v--appVersionIdThe version's unique identifier.
-z--regionThe region to use: us, au, or eu.

Example

$ mapps app:deploy 

mapps app:list

The mapps app:list command lists all apps for a specific user.

Example

$ mapps app:list

mapps app:promote

The mapps app:promote command promotes an app's draft version to live.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's unique identifier.
-i--appVersionIdThe app version's unique identifier

Example

$ mapps app:promote -i <APP_VERSION_ID> -a <APP_ID>

mapps app:scaffold [DESTINATION] [PROJECT]

The mapps app:scaffold [DESTINATION] [PROJECT] command scaffolds a monday app from a template, installs dependencies, and starts the project automatically.

Arguments

ArgumentDescription
DESTINATIONThe destination directory for the scaffolded project.
PROJECTThe name of the template project to scaffold.

Flags

Short FlagLong FlagDescriptionNotes
-c--commandThe npm script command to run after installation.Default: start
-s--signingSecretThe monday.com signing secret used for .env configuration.

Example

$ mapps app:scaffold ./my-app slack-node --signingSecret YOUR_SECRET

mapps autocomplete [SHELL]

The mapps autocomplete [SHELL] command displays the autocomplete installation instructions.

Arguments

ArgumentDescription
SHELLThe shell type: zsh, bash, or powershell.

Flags

Short FlagLong FlagDescription
-r--refresh-cacheRefreshes the cache (ignores displaying instructions).

Example

$ mapps autocomplete bash

mapps code:env

The mapps code:env command manages environment variables for your app hosted on monday code.

Flags

Short FlagLong FlagDescription
-i--appIdThe app's ID.
-k--keyThe variable key (required for set and delete).
-m--modeThe management mode: list-keys, set, ordelete.
-v--valueThe variable value (required for set).
-z--regionThe region to use: us, au, or eu.

Example

$ mapps code:env -m set -k <KEY> -v <VALUE>

mapps code:logs

The mapps code:logs command streams logs.

Flags

Short FlagLong FlagDescription
-e--logsEndDateThe log's end date (e.g. MM/DD/YYYY HH:mm). Only supported for history events.
-f--logsStartDateThe log's start date (e.g. MM/DD/YYYY HH:mm). Only supported for history events.
-i--appVersionIdThe app's version ID.
-r--logSearchFromTextThe regex text to search the logs for. Only supported for live events.
-s--eventSourceThe log's source: live (live events) or history (past events).
-t--logsTypeThe log's type: http (http events) or console (stdout).
-z--regionThe region to use: us, au, or eu.

Example

$ mapps code:logs -i <APP_VERSION_ID> -t <LOGS_TYPE>

mapps code:push

The mapps code:push command pushes your project to be hosted on monday.com's infrastructure.

Flags

Short FlagLong FlagDescriptionNotes
-a--appIdThe app's ID.
-c--client-sidePushes client-side code to monday.com (4.6.0 and above).Uploads code to our CDN for faster load times and reduced latency (recommended). The directory must include a root-level index.html.
-d--directoryPathThe project's directory path. If excluded, the working directory will be used.When using a bundler, ensure the directory path is the build directory (e.g.,"./dist").
-f--forceForce push to the latest version (draft or live).
-i--appVersionIdThe app's version ID.
-s--security-scanRun a security scan to find dependency vulnerabilities during code deployment.
-z--regionThe region to use: us, au, eu.

Example

$ mapps code:push -d <PROJECT BUILD DIRECTORY PATH> -i <APP_VERSION_ID_TO_PUSH>

mapps code:report

The mapps code:report command gets a security scan report for a monday code deployment.

Flags

Short FlagLong FlagDescriptionNotes
-d--outputDirThe directory to save the report to.Required with the -o flag.
-i--appVersionIdThe app's version ID.
-o--outputSaves the full report as a JSON file.
-z--regionThe region to use: us, au, eu.

Example

$ mapps code:report -i APP_VERSION_ID -o -d /path/to/directory

mapps code:secret

The mapps code:secret command manages secret variables for your app hosted on monday-code. It is only available for monday code apps.

Flags

Short FlagLong FlagDescriptionNotes
-i-appIdThe app's ID.
-k--keyThe variable key.Required for set and delete.
-m--modeThe management mode: list-keys, set, or delete.
-v--valueThe variable value.Required for set.
-z--regionThe region to use: us, au, eu.

Example

$ mapps code:secret -m set -k <KEY> -v <VALUE>

mapps code:status

The mapps code:status command provides the status of a specific project hosted on monday-code. It is only available for monday code apps.

Flags

Short FlagLong FlagDescription
-i--appVersionIdThe app's version ID.
-z--regionThe region to use: us, au, eu.

Example

$ mapps code:status -i <APP_VERSION_ID>

mapps database:connection-string

The mapps database:connection-string command gets the connection string for your app database.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's ID.

Example

$ mapps database:connection-string -a APP_ID

mapps help [COMMANDS]

The mapps help [COMMANDS] command displays help for mapps.

Arguments

ArgumentDescription
COMMANDSThe command to show help for.

Flags

Short FlagLong FlagDescription
-n--nested-commandsIncludes all nested commands in the output.

Example

$ mapps help [COMMANDS] [-n]

mapps init

The mapps init command initializes the mapps config file (i.e., ".mappsrc"). You can use this command to add your API token to access the CLI.

Flags

Short FlagLong FlagDescription
-l--localCreates the configuration file locally in the current project working directory. Use this if you are using different access tokens for each of your projects.
-t--tokenThe API access token.

Example

$ mapps init -t <SECRET_TOKEN>

mapps manifest:export

The mapps manifest:export command exports an app manifest.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's ID.
-i--appVersionIdThe app's version ID.
-p--manifestPathThe path to export your app manifest files to.

Example

$ mapps manifest:export -p ./exports

mapps manifest:import

The mapps manifest:import command imports a manifest with optional template variables.

Flags

Short FlagLong FlagDescriptionNotes
-a--appIdThe app's ID.Creates a new draft version.
-i--appVersionIdThe app's version ID to override.
-m--allowMissingVariablesAllows missing variables.
-n--newAppCreates a new app.
-p--manifestPathThe path to your app manifest file on your machine.

Example

$ mapps manifest:import --manifestPath ./manifest.json

mapps scheduler:create

The mapps scheduler:create command creates a new scheduled cron job. It is only available for monday code apps.

Flags

Short FlagLong FlagDescriptionNotes
-a--appIdThe app's ID.
-b--minBackoffDurationThe minimum backoff duration between retries.The value should be in seconds. Optional. If omitted, the default will be 10 minutes.
-d--descriptionThe scheduled job's description.
-n--nameThe scheduled job's name. This is the unique identifier of the job for this app.There is no whitespace allowed. This should be unique to the job, but the names of deleted jobs can be reused.
-r--maxRetriesThe maximum number of retries for failed jobs.Optional.
-s--scheduleThe scheduled job's cron expression.Relative to UTC. Use a cron expression generator to ensure proper format (e.g., Cronhub ).
-t--timeoutThe job execution timeout.The value should be in seconds. Optional.
-u--targetUrlThe job's target URL path.This must start with "/". It will be relative to /mndy-cronjob.
-z--regionThe region to use: us, au, or eu.

Example

$ mapps scheduler:create -a APP_ID -s "0 * * * *" -u "/my-endpoint" -n "My-scheduled-job" -d "This job will execute hourly." -r 3

mapps scheduler:delete

The mapps scheduler:delete command deletes a scheduled cron job. It is only available for monday code apps.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's unique identifier.
-n--nameScheduled job name
-z--regionThe region to use: us, au, or eu.

Example

$ mapps scheduler:delete -a APP_ID -n "my-job"

mapps scheduler:list

The mapps scheduler:list command lists all scheduled cron jobs. It is only available for monday code apps.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's unique identifier.

Example

$ mapps scheduler:list -a APP_ID

mapps scheduler:run

The mapps scheduler:run command runs a scheduled cron job. This can be used to invoke a scheduled job on demand, rather than waiting for the next scheduled iteration. It is only available for monday code apps.

Flags

Short FlagLong FlagDescription
-a--appIdThe app's unique identifier.
-n--nameScheduled job name
-z--regionThe region to use: us, au, or eu.

Example

$ mapps scheduler:run -a APP_ID -n "my-job"

mapps scheduler:update

The mapps scheduler:update command updates a scheduled cron job. It is only available for monday code apps.

Flags

Short FlagLong FlagDescriptionNotes
-a--appIdThe app's unique identifier.
-b--minBackoffDurationThe minimum backoff duration between retries.The value should be in seconds. Optional. If omitted, the default will be 10 minutes.
-d--descriptionThe scheduled job's description.
-n--nameThe scheduled job's name. This is the unique identifier of the job for this app.There is no whitespace allowed. This should be unique to the job, but the names of deleted jobs can be reused.
-r--maxRetriesThe maximum number of retries for failed jobs.Optional.
-s--scheduleThe scheduled job's cron expression.Relative to UTC. Use a cron expression generator to ensure proper format (e.g., Cronhub).
-t--timeoutThe job execution timeout.The value should be in seconds. Optional.
-u--targetUrlThe job's target URL path.This must start with "/". It will be relative to /mndy-cronjob.
-z--regionThe region to use: us, au, or eu.

Example

$ mapps scheduler:update -a APP_ID -n "my-job" -d "This job will execute automatically." -r 3 -b 10 -t 60

mapps storage:export

The mapps storage:export command exports all keys and values stored on monday for a specific customer account.

Short FlagLong FlagDescription
-a--appIdThe app to retrieve the key for.
-c--clientAccountIdThe client account number.
-d--fileDirectoryThe file path. Optional. If not used, it will take your current folder.
-f--fileFormatThe file format: CSV or JSON. Optional, the default is JSON.

Example

$ mapps storage:export 
// or
$ mapps storage:export -a 12345678790 -c 9876543210 

mapps storage:remove-data

The mapps storage:remove-data command removes all storage data for a specific customer account.

Short FlagLong FlagDescription
-a--appIdThe app's ID.
-c--clientAccountIdThe client account number.
-f--forceSkip the confirmation step

Example

$ mapps storage:remove-data -a 1234567890 -c 9876543210

mapps storage:search

The mapps storage:search command searches keys and values stored on monday for a specific customer account.

Short FlagLong FlagDescription
-a--appIdThe app to retrieve the key for.
-c--clientAccountIdThe client account number.
-t--termThe term to search for.

Example

$ mapps storage:search 
// or 
$ mapps storage:search -a 1234567890 -c 9876543210 -t keyword

mapps tunnel:create

The mapps tunnel:create command creates a networking tunnel to publicly expose code running on the local machine.

Flags

Short FlagLong FlagDescription
-a--appIdThe unique identifier of the app to get a unique tunnel domain for.
-p--portThe port to forward tunnel traffic to. The default is 8080.

Example

$ mapps tunnel:create -p 3000 -a 123456789