Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@trycourier/cli
Advanced tools
### Build, test, and manage your [Courier](https://www.courier.com) integration directly from the command line.
The Courier CLI is a developer tool to help you build, test, and manage your integration with Courier directly from the command line. It’s simple to install, works on macOS, Windows, and Linux, and offers a range of functionality to enhance your developer experience with Courier. You can use the Courier CLI to:
From the command-line, use the following command to install the Courier CLI and set your API key:
$ yarn install -g @trycourier/cli
$ courier config --apikey <your-api-key>
The fastest way to get started is to run:
$ courier config --apikey <your-api-key>
Courier CLI looks for environment variables prefixed with COURIER_AUTH_TOKEN
. It will load keys from the first location it finds in the following list:
.courier
file in the current working directory~/.courier
(in your home directory)COURIER_AUTH_TOKEN
or COURIER_AUTH_TOKEN_*
value otherwise set in your environment (such as via ~/.profile
or ~/.zshrc
)You can find your Courier API key in your Courier Settings.
courier config
– Set your Courier API keycourier whoami
– Display the currently authenticated workspacecourier send
- Send a notification to a user, list, tenant, or audiencecourier track
- Send a track event to trigger a Courier Automationscourier users:get
- Fetch the data for a given user IDcourier users:set
- Overwrite a user's profile with the provided datacourier users:bulk
- Bulk upload users via csv, json, or parquetcourier translations:upload
- Upload .PO files to your Courier workspacecourier translations:download
- Download .PO files from your Courier workspaceFor more details, run courier
to see a list of commands and their arguments & options.
courier --help
courier --version
courier upgrade
courier send --tel 555-867-5309 --body "Hey Jenny\!"
courier send --user user123 --template my-template-id --foo bar
courier send -P --user=test123 --body "hello world" --title="hello" --channels=inbox
courier send --tenant=kewl --title=hello --body="hello world" --channel=inbox
courier send --user="1" --tenant-context=kewl --title=hello --body="hello world" --channel=inbox
courier users:get user123
courier users:set user123 --email user@example.com
courier users:bulk examples/users.csv --replace
courier users:bulk examples/users.parquet --list new-list-id --tenant new-tenant-id
courier track EXAMPLE_EVENT user123 --name "Pip the Pigeon"
courier translations:upload en-US ./translations/en-US.po
courier translations:download en-US --text > example.en-US.po
courier config --apikey MY_API_KEY -P --override
courier config --apikey MY_API_KEY --mock
courier config --apikey MY_API_KEY --draft
courier test-user123 --scopes=read:user-tokens,write:user-tokens --expiration=60
courier test-user123 --all --quiet | pbcopy
There are a number flags you can use for any command
Flags | Description |
---|---|
-M --mock | Use the API key that simulates sending using the simulating routing |
-P --production | Use the production environment API key |
-D --draft | Use the draft document scope API key. Use draft or submitted, will default to published key if neither are provided |
-S --submitted | Use the submitted document scope API key |
--apikey | Use the provided Courier API key, otherwise use the approprate environment variable |
--apiurl | Use the provided Courier API URL, otherwise use COURIER_API_URL environment variable. Default is https://api.courier.com |
FAQs
### Build, test, and manage your [Courier](https://www.courier.com) integration directly from the command line.
We found that @trycourier/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.