
Company News
Socket Named to Rising in Cyber 2026 List of Top Cybersecurity Startups
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.
@medplum/cli
Advanced tools
The Medplum CLI (Command Line Interface) is a set of command line tools to quickly deploy Medplum web applications and Medplum bots.
Add as a dependency:
npm install @medplum/cli
Syntax:
medplum <command> <args>
At present, there is only one command called deploy-bot. Syntax:
medplum deploy-bot <filename> <bot-id>
Example:
medplum deploy-bot dist/hello-world.js e54fa800-02ab-41be-8d48-8c027dd85ccc
In practice, consider adding the command to the "scripts" section of your package.json:
"scripts": {
"build": "tsc",
"deploy:hello-world": "medplum deploy-bot dist/hello-world.js e54fa800-02ab-41be-8d48-8c0200000000"
},
Then, from the command line, run:
npm run deploy:hello-world
Authentication requires client credentials in the form of environment variables MEDPLUM_CLIENT_ID and MEDPLUM_CLIENT_SECRET. This supports most use cases, including secrets from CI/CD. dotenv is enabled, so you could store them in .env file.
Write your bot. This can be TypeScript. It can reference @medplum/core and node-fetch:
import { MedplumClient } from '@medplum/core';
import { Resource } from '@medplum/fhirtypes';
export async function handler(medplum: MedplumClient, input: Resource): Promise<any> {
console.log('Hello world');
}
Compile with vanilla tsc (no build tools required)
npx tsc
Or:
npm run build
You get sensible plain old JavaScript output:
export async function handler(medplum, input) {
console.log('Hello world');
}
You can then use the Medplum CLI to deploy it.
npm run deploy:hello-world
Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications. Medplum includes a FHIR server, React component library, and developer app.
Apache 2.0. Copyright © Medplum 2022
FAQs
Medplum Command Line Interface
The npm package @medplum/cli receives a total of 9,502 weekly downloads. As such, @medplum/cli popularity was classified as popular.
We found that @medplum/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.

Research
Socket detected 84 compromised TanStack npm package artifacts modified with suspected CI credential-stealing malware.

Security News
A dispute over fsnotify maintainer access set off supply chain alarms around one of Go’s most widely used filesystem libraries.