Learn how to install, configure, and run your first tpcli commands.
Time needed: ~10 minutes
- Go 1.20 or later (or download the compiled binary)
- TargetProcess account access
- TargetProcess API token (see Authentication Setup)
cd ~/shalomb/tpcli
./tpcli --helpcd ~/shalomb/tpcli
go build -o tpcli
./tpcli --helpSet environment variables:
export TP_URL="https://example.tpondemand.com"
export TP_TOKEN="your-api-token"(For detailed auth setup, see Authentication Setup Tutorial)
Run the discover command to test your connection:
./tpcli discover -vExpected output:
Attempting to discover TargetProcess instance...
Discovering Projects... (no errors = good!)
Discovering Epics...
...
List user stories:
./tpcli list UserStories --take 5You should see JSON output with user story data.
Try these commands:
# List bugs
./tpcli list Bugs --take 10
# Get details of one entity
./tpcli get UserStory 1938771
# See all available options
./tpcli discover --help- Basic Queries Tutorial - Learn more query options
- How to List & Filter - Advanced filtering
- Entity Types Reference - See what you can query
→ Set TP_TOKEN environment variable (see Step 2)
→ Your token may be invalid. See Authentication Setup
→ This is an API error. Check your --where filter syntax
→ Run go build -o tpcli in Step 1 (Option B)
Next: Basic Queries Tutorial →