# Battery Check from CLI

**URL:** <https://forum.clockworkpi.com/t/battery-check-from-cli/3188>\
**Category:** Developers\
**Tags:** hardware\
**Created:** [March 13, 2019, 12:11am UTC](https://forum.clockworkpi.com/t/battery-check-from-cli/3188 "2019-03-13T00:11:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeronaut](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/zeronaut/32/1415_2.png) [@Zeronaut](https://forum.clockworkpi.com/u/Zeronaut)\
**Post date:** [March 13, 2019, 12:11am UTC](https://forum.clockworkpi.com/t/battery-check-from-cli/3188/1 "2019-03-13T00:11:20Z")

</div>

How do you check the GameShell’s battery level from the CLI?  
SSH to your device and run the following:  
cpi@clockworkpi:~$ upower -i /org/freedesktop/UPower/devices/battery\_axp20x\_battery

Example output:  
native-path: axp20x-battery  
power supply: yes  
updated: Tue 12 Mar 2019 08:00:47 PM EDT (119 seconds ago)  
has history: yes  
has statistics: yes  
battery  
present: yes  
rechargeable: yes  
state: discharging  
warning-level: none  
energy: 0 Wh  
energy-empty: 0 Wh  
energy-full: 0 Wh  
energy-full-design: 0 Wh  
energy-rate: 0 W  
voltage: 4.012 V  
percentage: 92%  
capacity: 100%  
icon-name: ‘battery-full-symbolic’
