diff --git a/tldr/composer-audit b/tldr/composer-audit new file mode 100644 index 00000000..9eba9c05 --- /dev/null +++ b/tldr/composer-audit @@ -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: . + +- 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}}` diff --git a/tldr/linux/man b/tldr/linux/man index db0afa0a..eebc09ba 100644 --- a/tldr/linux/man +++ b/tldr/linux/man @@ -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: diff --git a/tldr/pulumi-refresh b/tldr/pulumi-refresh new file mode 100644 index 00000000..9b934603 --- /dev/null +++ b/tldr/pulumi-refresh @@ -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: . + +- 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`