Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-04 00:18:05 +00:00
parent d7209dda96
commit fe7d7e9145
3 changed files with 65 additions and 2 deletions

30
tldr/composer-audit Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# composer audit
> Analyze a PHP project's dependencies to detect known security vulnerabilities and list affected packages.
> See also: `composer`.
> More information: <https://getcomposer.org/doc/03-cli.md#audit>.
- Check for security vulnerabilities in your current project:
`composer audit`
- Omit dev dependencies in the audit:
`composer audit --no-dev`
- Filter vulnerabilities by output format:
`composer audit --format {{table|plain|json|summary}}`
- Output audit results to a file in JSON format:
`composer audit --format json > audit_report.json`
- Verify whether a specific package in your project is affected by security issues:
`composer audit {{vendor}}/{{package}}`

View File

@@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git
`man {{command}}`
- Open the man page for a command in a browser (requires the `BROWSER` variable to be set):
- Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`):
`man --html {{command}}`
`man --html{{=browser_name}} {{command}}`
- Display the man page for a command from section 7:

33
tldr/pulumi-refresh Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pulumi refresh
> Refresh the resources in a stack.
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_refresh/>.
- Compare the current stack's state with the state in the cloud provider and adopt any changes into the current stack:
`pulumi refresh`
- Refresh resources in the current stack and show the operation as a rich diff:
`pulumi refresh --diff`
- Refresh resources in the current stack and return an error if any changes occur during the refresh:
`pulumi refresh --expect-no-changes`
- Only show a preview of the refresh, but don't perform the refresh itself:
`pulumi refresh --preview-only`
- The name of the stack to operate on (defaults to the current stack):
`pulumi refresh --stack {{stack_name}}`
- Display help:
`pulumi refresh --help`