Commands Cheat Sheet

Try DrDroid: AI Agent for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

Connection

ssh @
Connect to Puppet server via SSH

puppet agent --test
Manually trigger a Puppet agent run (test mode)

Puppet Agent Commands

puppet agent --test
Run Puppet agent in test mode (verbose output, no daemonize)

puppet agent -t
Short form of --test

puppet agent --noop
Simulate changes without actually applying them

puppet status
Show the status of the Puppet agent service

puppet config print
Print all configuration settings

puppet agent --disable "reason"
Disable Puppet agent runs with a reason

puppet agent --enable
Enable Puppet agent runs

puppet resource service puppet
Check status of Puppet service

Certificate Management

puppet cert list
List all certificate requests

puppet cert sign
Sign a certificate request

puppet cert clean
Remove a certificate

puppet cert list --all
List all certificates (signed and unsigned)

Module Management

puppet module list
List installed modules

puppet module install
Install a module

puppet module upgrade
Upgrade a module

puppet module uninstall
Uninstall a module

Debugging and Testing

puppet parser validate
Validate Puppet manifest syntax

puppet apply --noop
Test a manifest without applying changes

puppet lookup --node
Look up data for a specific node

puppet describe
Show documentation for a resource type

puppet resource
Show current state of a resource

Server Management

puppetserver ca list
List certificate requests (newer versions)

puppetserver ca sign --certname
Sign certificate (newer versions)

puppetserver gem list
List gems installed in the Puppet server

puppetserver reload
Reload Puppet server

Log and Report Viewing

tail -f /var/log/puppetlabs/puppetserver/puppetserver.log
View Puppet server logs

tail -f /var/log/puppetlabs/puppet/puppet.log
View Puppet agent logs

puppet report show
Show the last report for a node