@jaspermayone/slack-profile-cli
v2.0.0
Published
CLI tool for updating Slack user profiles
Readme
Slack Profile CLI (Node.js)
Node.js implementation of the Slack Profile CLI tool.
Installation
Via npm (Global)
npm install -g @jaspermayone/slack-profile-cliFrom Source
cd nodejs
npm install
npm linkSetup
Configure your Slack token (choose one method):
Option 1: Environment variable (recommended)
export SLACK_TOKEN=xoxp-your-token-hereOption 2: .env file
cp .env.example .env
# Edit .env and add your tokenOption 3: Command line flag
slack-profile --token xoxp-your-token-here <command>Usage
Interactive Mode
slack-profile
# or
slack-profile interactiveCLI Commands
# List available fields
slack-profile list-fields
# Set a single field
slack-profile set-field -u U1234567890 -n title -v "Engineer"
# Set multiple fields
slack-profile set-profile -u U1234567890 -p '{"title":"CTO","phone":"555-1234"}'
# Batch update
slack-profile batch-field -u U123,U456,U789 -n title -v "Engineer"Publishing to npm
npm version patch # or minor/major
npm publish
git push && git push --tagsSee the main README for full documentation.
