mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 21:48:56 +00:00
Update cheatsheets
This commit is contained in:
2
tldr/ack
2
tldr/ack
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A search tool like `grep`, optimized for developers.
|
||||
> See also: `rg`, which is much faster.
|
||||
> More information: <https://beyondgrep.com/documentation>.
|
||||
> More information: <https://beyondgrep.com/documentation/>.
|
||||
|
||||
- Search for files containing a string or `regex` in the current directory recursively:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# airshare
|
||||
|
||||
> Transfer data between two machines in a local network.
|
||||
> More information: <https://airshare.rtfd.io/en/latest/cli.html>.
|
||||
> More information: <https://airshare.readthedocs.io/en/latest/cli.html>.
|
||||
|
||||
- Share files or directories:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage groups of computers remotely over SSH. (use the `/etc/ansible/hosts` file to add new groups/hosts).
|
||||
> Some subcommands such as `galaxy` have their own usage documentation.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible.html>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible.html>.
|
||||
|
||||
- List hosts belonging to a group:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Display information on modules installed in Ansible libraries.
|
||||
> Display a terse listing of plugins and their short descriptions.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-doc.html>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-doc.html>.
|
||||
|
||||
- List available action plugins (modules):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ansible-galaxy
|
||||
|
||||
> Perform various Ansible Role and Collection related operations.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-galaxy.html>.
|
||||
|
||||
- List installed roles or collections:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Display or dump an Ansible inventory.
|
||||
> See also: `ansible`.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-inventory.html>.
|
||||
|
||||
- Display the default inventory:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ansible-lint
|
||||
|
||||
> Apply rules and follow best practices with your automation content.
|
||||
> More information: <https://ansible.readthedocs.io/projects/lint/>.
|
||||
> More information: <https://docs.ansible.com/projects/lint/>.
|
||||
|
||||
- Lint a specific playbook and a role directory:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ansible-playbook
|
||||
|
||||
> Execute tasks defined in playbook on remote machines over SSH.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-playbook.html>.
|
||||
|
||||
- Run tasks in playbook:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ansible-pull
|
||||
|
||||
> Pull ansible playbooks from a VCS repo and executes them for the local host.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-pull.html>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-pull.html>.
|
||||
|
||||
- Pull a playbook from a VCS and execute a default local.yml playbook:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ansible-vault
|
||||
|
||||
> Encrypt and decrypt values, data structures, and files within Ansible projects.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/user_guide/vault.html#id17>.
|
||||
> More information: <https://docs.ansible.com/projects/ansible/latest/vault_guide/index.html>.
|
||||
|
||||
- Create a new encrypted vault file with a prompt for a password:
|
||||
|
||||
|
||||
2
tldr/aws
2
tldr/aws
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The official CLI tool for Amazon Web Services.
|
||||
> Some subcommands such as `s3` have their own usage documentation.
|
||||
> More information: <https://aws.amazon.com/cli>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/>.
|
||||
|
||||
- Configure the AWS Command-line:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws accessanalyzer
|
||||
|
||||
> Analyze and review resource policies to identify potential security risks.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/accessanalyzer/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/accessanalyzer/>.
|
||||
|
||||
- Create a new Access Analyzer:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws acm
|
||||
|
||||
> AWS Certificate Manager.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/acm/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/acm/>.
|
||||
|
||||
- Import a certificate:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws acm-pca
|
||||
|
||||
> AWS Certificate Manager Private Certificate Authority.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/acm-pca/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/acm-pca/>.
|
||||
|
||||
- Create a private certificate authority:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws amplify
|
||||
|
||||
> Development platform for building secure, scalable mobile and web applications.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/amplify/>.
|
||||
|
||||
- Create a new Amplify app:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws backup
|
||||
|
||||
> Unified backup service designed to protect Amazon Web Services services and their associated data.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/backup/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/backup/>.
|
||||
|
||||
- Return BackupPlan details for a specific BackupPlanId:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws batch
|
||||
|
||||
> Run batch computing workloads through the AWS Batch service.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/batch/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/batch/>.
|
||||
|
||||
- List running batch jobs:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws ce
|
||||
|
||||
> Run cost management operations through the AWS Cost Explorer service.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ce/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/ce/>.
|
||||
|
||||
- Create anomaly monitor:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws cloud9
|
||||
|
||||
> Manage Cloud9 - a collection of tools to code, build, run, test, debug, and release software in the cloud.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloud9/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/cloud9/>.
|
||||
|
||||
- List all Cloud9 development environment identifiers:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws cloudformation
|
||||
|
||||
> Model, provision, and manage AWS and third-party resources by treating infrastructure as code.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/cloudformation/>.
|
||||
|
||||
- Create a stack from a template file:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws cloudwatch
|
||||
|
||||
> Monitor AWS resources to gain system-wide visibility into resource utilization, application performance, and operational health.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/>.
|
||||
|
||||
- List dashboards for your account:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage CodeArtifact repositories, domains, packages, package versions, and assets.
|
||||
> CodeArtifact is an artifact repository compatible with popular package managers and build tools like Maven, Gradle, npm, Yarn, Twine, pip, NuGet, and SwiftPM.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codeartifact/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/codeartifact/>.
|
||||
|
||||
- List available domains for your AWS account:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws cognito-idp
|
||||
|
||||
> Configure an Amazon Cognito user pool and its users and groups and authenticate them.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/>.
|
||||
|
||||
- Create a new Cognito user pool:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws cur
|
||||
|
||||
> Create, query, and delete AWS usage report definitions.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cur/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/cur/>.
|
||||
|
||||
- Create an AWS cost and usage report definition from a JSON file:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage AWS EC2 instances and volumes.
|
||||
> AWS EC2 provides secure and resizable computing capacity in the AWS cloud for faster development and deployment of applications.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/ec2/>.
|
||||
|
||||
- Display information about a specific instance:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws ecr
|
||||
|
||||
> Push, pull, and manage container images.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/ecr/>.
|
||||
|
||||
- Authenticate Docker with the default registry (username is AWS):
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage Amazon Elastic Kubernetes Service (EKS) addons, clusters, and node groups.
|
||||
> Amazon EKS is a service for easily running Kubernetes on AWS.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/eks/>.
|
||||
|
||||
- Create an EKS Cluster:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws iam
|
||||
|
||||
> Interact with Identity and Access Management (IAM), a web service for securely controlling access to AWS services.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/iam/>.
|
||||
|
||||
- List users:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage an Amazon MSK (Managed Streaming for Apache Kafka) cluster.
|
||||
> See also: `aws`.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/kafka/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/kafka/>.
|
||||
|
||||
- Create a new MSK cluster:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws kendra
|
||||
|
||||
> CLI for AWS Kendra.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kendra/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/kendra/>.
|
||||
|
||||
- Create an index:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws lightsail
|
||||
|
||||
> Manage Amazon Lightsail resources.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/lightsail/>.
|
||||
|
||||
- List all virtual private servers, or instances:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws rds
|
||||
|
||||
> Use AWS Relational Database Service, a web service for setting up, operating, and scaling relational databases.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/rds/>.
|
||||
|
||||
- Display help for a specific RDS subcommand:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws route53
|
||||
|
||||
> CLI for AWS Route53 - Route 53 is a highly available and scalable Domain Name System (DNS) web service.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/route53/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/route53/>.
|
||||
|
||||
- List all hosted zones, private and public:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> CLI for AWS S3 - provides storage through web services interfaces.
|
||||
> Some subcommands such as `cp` have their own usage documentation.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/>.
|
||||
|
||||
- Show files in a bucket:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 cp
|
||||
|
||||
> Copy local files or S3 objects to another location locally or in S3.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html>.
|
||||
|
||||
- Copy a file from local to a specific bucket:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 ls
|
||||
|
||||
> List AWS S3 buckets, folders (prefixes), and files (objects).
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/ls.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html>.
|
||||
|
||||
- List all buckets:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 mb
|
||||
|
||||
> Create S3 buckets.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/mb.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/mb.html>.
|
||||
|
||||
- Create an S3 bucket:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 mv
|
||||
|
||||
> Move local files or S3 objects to another location locally or in S3.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/mv.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/mv.html>.
|
||||
|
||||
- Move a file from local to a specified bucket:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 presign
|
||||
|
||||
> Generate pre-signed URLs for Amazon S3 objects.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/presign.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html>.
|
||||
|
||||
- Generate a pre-signed URL for a specific S3 object that is valid for one hour:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 rm
|
||||
|
||||
> Delete S3 objects.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/rm.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/rm.html>.
|
||||
|
||||
- Delete a specific S3 object:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3 sync
|
||||
|
||||
> Recursively sync files and directories between your local system and an S3 bucket, or between S3 buckets.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html>.
|
||||
|
||||
- Sync files in a directory from local to a bucket:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws s3api
|
||||
|
||||
> Create and delete Amazon S3 buckets and edit bucket properties.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3api/>.
|
||||
|
||||
- Create bucket in a specific region:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> CLI for AWS Simple Email Service.
|
||||
> High-scale inbound and outbound cloud email service.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ses/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/ses/>.
|
||||
|
||||
- Create a new receipt rule set:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws sns
|
||||
|
||||
> Create topics and subscriptions, send and receive messages, and monitor events and logs for the Amazon Simple Notification Service.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sns/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/sns/>.
|
||||
|
||||
- List all objects of a specific type:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws sqs
|
||||
|
||||
> Create, delete, and send messages to queues for the AWS SQS service.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sqs/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/sqs/>.
|
||||
|
||||
- List all availables queues:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws sso
|
||||
|
||||
> Manage access to AWS resources using Single Sign-On (SSO) credentials.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sso/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/sso/>.
|
||||
|
||||
- Start SSO session and refresh access tokens. Requires setup using `aws configure sso`:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aws workmail
|
||||
|
||||
> Manage Amazon WorkMail.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/workmail/index.html>.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/workmail/>.
|
||||
|
||||
- List all WorkMail organizations:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# balena
|
||||
|
||||
> Interact with the balenaCloud, openBalena, and the balena API.
|
||||
> More information: <https://www.balena.io/docs/reference/cli/>.
|
||||
> More information: <https://docs.balena.io/reference/balena-cli/latest/>.
|
||||
|
||||
- Log in to the balenaCloud account:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# berks
|
||||
|
||||
> Chef cookbook dependency manager.
|
||||
> More information: <https://docs.chef.io/berkshelf.html>.
|
||||
> More information: <https://docs.chef.io/workstation/berkshelf/>.
|
||||
|
||||
- Install cookbook dependencies into a local repo:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# blackfire
|
||||
|
||||
> Monitor, profile, and test a PHP application.
|
||||
> More information: <https://blackfire.io>.
|
||||
> More information: <https://www.blackfire.io/>.
|
||||
|
||||
- Initialize and configure the Blackfire client:
|
||||
|
||||
|
||||
2
tldr/bq
2
tldr/bq
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bq
|
||||
|
||||
> A Python-based tool for BigQuery, Google Cloud's fully managed and completely serverless enterprise data warehouse.
|
||||
> More information: <https://cloud.google.com/bigquery/docs/reference/bq-cli-reference>.
|
||||
> More information: <https://docs.cloud.google.com/bigquery/docs/reference/bq-cli-reference>.
|
||||
|
||||
- Run query against a BigQuery table using standard SQL, add `--dry_run` flag to estimate the number of bytes read by the query:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Execute shell commands or script files using Bun's runtime.
|
||||
> Note: When running from a shell, remember to escape quotes.
|
||||
> More information: <https://bun.sh/docs/runtime/shell>.
|
||||
> More information: <https://bun.com/docs/runtime/shell>.
|
||||
|
||||
- Run a simple command:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bun install
|
||||
|
||||
> Install JavaScript dependencies for a project from `package.json`.
|
||||
> More information: <https://bun.com/docs/cli/install>.
|
||||
> More information: <https://bun.com/docs/pm/cli/install>.
|
||||
|
||||
- Install all dependencies listed in `package.json`:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun pm migrate
|
||||
|
||||
> Convert another package manager’s lockfile to a Bun-compatible lockfile without installing anything.
|
||||
> Convert another package manager's lockfile to a Bun-compatible lockfile without installing anything.
|
||||
> More information: <https://bun.com/docs/pm/cli/pm#migrate>.
|
||||
|
||||
- Migrate the lockfile in the current project:
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Remove a dependency from `package.json`.
|
||||
> Note: `rm` can be used as an alias for `remove`.
|
||||
> More information: <https://bun.sh/docs/cli/remove>.
|
||||
> More information: <https://bun.com/docs/pm/cli/remove>.
|
||||
|
||||
- Remove a dependency:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bun run
|
||||
|
||||
> Execute a JavaScript/TypeScript file, or a script from `package.json`.
|
||||
> More information: <https://bun.com/docs/cli/run>.
|
||||
> More information: <https://bun.com/docs/runtime>.
|
||||
|
||||
- Run a script defined in `package.json`:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Run tests using Bun's built-in test runner.
|
||||
> It is a fast, Jest-compatible test runner that looks for `*.test.ts` (and similar) files.
|
||||
> More information: <https://bun.com/docs/cli/test>.
|
||||
> More information: <https://bun.com/docs/test>.
|
||||
|
||||
- Run all test files found in the project:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Execute a package binary (installed locally or fetched remotely).
|
||||
> Note: `bun x` can be used as an alias for `bunx`.
|
||||
> More information: <https://bun.sh/docs/pm/bunx>.
|
||||
> More information: <https://bun.com/docs/pm/bunx>.
|
||||
|
||||
- Download and execute a package from the registry:
|
||||
|
||||
|
||||
2
tldr/bw
2
tldr/bw
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bw
|
||||
|
||||
> Access and manage a Bitwarden vault.
|
||||
> More information: <https://help.bitwarden.com/article/cli/>.
|
||||
> More information: <https://bitwarden.com/help/cli/>.
|
||||
|
||||
- Log in to a Bitwarden user account:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage Rust projects and their module dependencies (crates).
|
||||
> Some subcommands such as `build` have their own usage documentation.
|
||||
> More information: <https://doc.rust-lang.org/cargo>.
|
||||
> More information: <https://doc.rust-lang.org/stable/cargo/>.
|
||||
|
||||
- Search for crates:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cargo msrv
|
||||
|
||||
> Manage the Minimum Supported Rust Version (MSRV) of a project.
|
||||
> More information: <https://gribnau.dev/cargo-msrv>.
|
||||
> More information: <https://gribnau.dev/cargo-msrv/>.
|
||||
|
||||
- Display the MSRVs of dependencies (as specified in their `Cargo.toml`):
|
||||
|
||||
|
||||
2
tldr/cbt
2
tldr/cbt
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cbt
|
||||
|
||||
> Utility for reading data from Google Cloud's Bigtable.
|
||||
> More information: <https://cloud.google.com/bigtable/docs/cbt-reference>.
|
||||
> More information: <https://docs.cloud.google.com/bigtable/docs/cbt-reference>.
|
||||
|
||||
- List tables in the current project:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Open-source anti-virus program.
|
||||
> ClamAV isn't a command, but a set of commands.
|
||||
> More information: <https://www.clamav.net>.
|
||||
> More information: <https://www.clamav.net/>.
|
||||
|
||||
- View documentation for scanning files using the `clamd` daemon:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cloudflared
|
||||
|
||||
> Create a persistent connection to the Cloudflare network.
|
||||
> More information: <https://developers.cloudflare.com/argo-tunnel/>.
|
||||
> More information: <https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/>.
|
||||
|
||||
- Authenticate and associate the connection to a domain in the Cloudflare account:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Distributed key-value store with health checking and service discovery.
|
||||
> Some subcommands such as `kv` have their own usage documentation.
|
||||
> More information: <https://www.consul.io/commands>.
|
||||
> More information: <https://developer.hashicorp.com/consul/commands>.
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ctest
|
||||
|
||||
> CMake test driver program.
|
||||
> More information: <https://gitlab.kitware.com/cmake/community/wikis/doc/ctest/Testing-With-CTest>.
|
||||
> More information: <https://gitlab.kitware.com/cmake/community/-/wikis/doc/ctest/Testing-With-CTest>.
|
||||
|
||||
- Run all tests defined in the CMake project, executing 4 [j]obs at a time in parallel:
|
||||
|
||||
|
||||
2
tldr/d2
2
tldr/d2
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A modern diagram scripting language that turns text to diagrams.
|
||||
> Note: The output file supports SVG and PNG file formats.
|
||||
> More information: <https://d2lang.com/tour/man>.
|
||||
> More information: <https://d2lang.com/tour/man/>.
|
||||
|
||||
- Compile and render a D2 source file into an output file:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ddev
|
||||
|
||||
> Container based local development tool for PHP environments.
|
||||
> More information: <https://ddev.readthedocs.io/en/stable/users/usage/cli/>.
|
||||
> More information: <https://docs.ddev.com/en/stable/users/usage/cli/>.
|
||||
|
||||
- Start up a project:
|
||||
|
||||
|
||||
@@ -12,30 +12,30 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`deluge-console`
|
||||
|
||||
- Connect to a Deluge daemon instance:
|
||||
- [Interactive] Connect to a Deluge daemon instance:
|
||||
|
||||
`connect {{hostname}}:{{port}}`
|
||||
|
||||
- Add a torrent to the daemon:
|
||||
- [Interactive] Add a torrent to the daemon:
|
||||
|
||||
`add {{url|magnet|path/to/file}}`
|
||||
|
||||
- Display information about all torrents:
|
||||
- [Interactive] Display information about all torrents:
|
||||
|
||||
`info`
|
||||
|
||||
- Display information about a specific torrent:
|
||||
- [Interactive] Display information about a specific torrent:
|
||||
|
||||
`info {{torrent_id}}`
|
||||
|
||||
- Pause a torrent:
|
||||
- [Interactive] Pause a torrent:
|
||||
|
||||
`pause {{torrent_id}}`
|
||||
|
||||
- Resume a torrent:
|
||||
- [Interactive] Resume a torrent:
|
||||
|
||||
`resume {{torrent_id}}`
|
||||
|
||||
- Remove a torrent from the daemon:
|
||||
- [Interactive] Remove a torrent from the daemon:
|
||||
|
||||
`rm {{torrent_id}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A secure runtime for JavaScript, TypeScript, and WebAssembly.
|
||||
> Includes dependency management using `npm` or `jsr`, and tooling like bench, bundle, doc, and coverage.
|
||||
> More information: <https://docs.deno.com/runtime/reference/cli>.
|
||||
> More information: <https://docs.deno.com/runtime/reference/cli/>.
|
||||
|
||||
- Start a REPL (interactive shell, also known as Read-Eval-Print Loop):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# devspace
|
||||
|
||||
> Develop, deploy, and debug applications inside Kubernetes.
|
||||
> More information: <https://devspace.sh/docs/cli>.
|
||||
> More information: <https://www.devspace.sh/docs/cli>.
|
||||
|
||||
- Initialize a new DevSpace project in the current directory:
|
||||
|
||||
|
||||
2
tldr/dmd
2
tldr/dmd
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dmd
|
||||
|
||||
> Official D compiler.
|
||||
> More information: <https://dlang.org/dmd.html>.
|
||||
> More information: <https://dlang.org/dmd-windows.html>.
|
||||
|
||||
- Build a D source file:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# docker
|
||||
|
||||
> Manage Docker containers and images.
|
||||
> Some subcommands such as `run` have their own usage documentation.
|
||||
> Some subcommands such as `container` and `image` have their own usage documentation.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/>.
|
||||
|
||||
- List all Docker containers (running and stopped):
|
||||
|
||||
@@ -5,33 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker commit
|
||||
|
||||
> Create a new image from a container's changes.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/commit/>.
|
||||
> This command is an alias of `docker container commit`.
|
||||
|
||||
- Create an image from a specific container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker commit {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Apply a `CMD` Dockerfile instruction to the created image:
|
||||
|
||||
`docker commit {{[-c|--change]}} "CMD {{command}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Apply an `ENV` Dockerfile instruction to the created image:
|
||||
|
||||
`docker commit {{[-c|--change]}} "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Create an image with a specific author in the metadata:
|
||||
|
||||
`docker commit {{[-a|--author]}} "{{author}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Create an image with a specific comment in the metadata:
|
||||
|
||||
`docker commit {{[-m|--message]}} "{{comment}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Create an image without pausing the container during commit:
|
||||
|
||||
`docker commit {{[-p|--pause]}} {{false}} {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker commit --help`
|
||||
`tldr docker container commit`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# docker compose up
|
||||
|
||||
> Start and run Docker services defined in a Compose file.
|
||||
> More information: <https://docs.docker.com/compose/reference/up/>.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/compose/up/>.
|
||||
|
||||
- Start all services defined in the docker-compose file:
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Inspect the changes to a container since it was created:
|
||||
|
||||
`docker container diff {{container}}`
|
||||
`docker {{[diff|container diff]}} {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker container diff --help`
|
||||
`docker {{[diff|container diff]}} --help`
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
|
||||
|
||||
`docker ps {{[-f|--filter]}} "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`
|
||||
`docker {{[ps|container ls]}} {{[-f|--filter]}} "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`
|
||||
|
||||
@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container remove
|
||||
|
||||
> This command is an alias of `docker rm`.
|
||||
> This command is an alias of `docker container rm`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr docker rm`
|
||||
`tldr docker container rm`
|
||||
|
||||
12
tldr/docker-container-rmi
Normal file
12
tldr/docker-container-rmi
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker rmi
|
||||
|
||||
> This command is an alias of `docker image rm`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr docker image rm`
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run command in a new container connecting it to a network:
|
||||
|
||||
`docker run --network {{network}} {{image}}`
|
||||
`docker {{[run|container run]}} --network {{network}} {{image}}`
|
||||
|
||||
@@ -5,17 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker cp
|
||||
|
||||
> Copy files or directories between host and container filesystems.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/cp/>.
|
||||
> This command is an alias of `docker container cp`.
|
||||
|
||||
- Copy a file or directory from the host to a container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker cp {{path/to/file_or_directory_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}`
|
||||
|
||||
- Copy a file or directory from a container to the host:
|
||||
|
||||
`docker cp {{container_name}}:{{path/to/file_or_directory_in_container}} {{path/to/file_or_directory_on_host}}`
|
||||
|
||||
- Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves):
|
||||
|
||||
`docker cp {{[-L|--follow-link]}} {{path/to/symlink_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}`
|
||||
`tldr docker container cp`
|
||||
|
||||
@@ -5,13 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker diff
|
||||
|
||||
> Inspect changes to files or directories on a container's filesystem.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/diff/>.
|
||||
> This command is an alias of `docker container diff`.
|
||||
|
||||
- Inspect the changes to a container since it was created:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker diff {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker diff --help`
|
||||
`tldr docker container diff`
|
||||
|
||||
@@ -5,29 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker exec
|
||||
|
||||
> Execute a command on an already running Docker container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/exec/>.
|
||||
> This command is an alias of `docker container exec`.
|
||||
|
||||
- Enter an interactive shell session on an already-running container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker exec {{[-it|--interactive --tty]}} {{container_name}} {{/bin/bash}}`
|
||||
|
||||
- Run a command in the background (detached) on a running container:
|
||||
|
||||
`docker exec {{[-d|--detach]}} {{container_name}} {{command}}`
|
||||
|
||||
- Select the working directory for a given command to execute into:
|
||||
|
||||
`docker exec {{[-it|--interactive --tty]}} {{[-w|--workdir]}} {{path/to/directory}} {{container_name}} {{command}}`
|
||||
|
||||
- Run a command in background on existing container but keep `stdin` open:
|
||||
|
||||
`docker exec {{[-i|--interactive]}} {{[-d|--detach]}} {{container_name}} {{command}}`
|
||||
|
||||
- Set an environment variable in a running Bash session:
|
||||
|
||||
`docker exec {{[-it|--interactive --tty]}} {{[-e|--env]}} {{variable_name}}={{value}} {{container_name}} {{/bin/bash}}`
|
||||
|
||||
- Run a command as a specific user:
|
||||
|
||||
`docker exec {{[-u|--user]}} {{user}} {{container_name}} {{command}}`
|
||||
`tldr docker container exec`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# docker image
|
||||
|
||||
> Manage Docker images.
|
||||
> See also: `docker build`, `docker pull`, `docker image rm`.
|
||||
> See also: `docker build`, `docker image pull`, `docker image rm`.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/>.
|
||||
|
||||
- List local Docker images:
|
||||
|
||||
@@ -5,17 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker load
|
||||
|
||||
> Load Docker images from files or `stdin`.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/load/>.
|
||||
> This command is an alias of `docker image load`.
|
||||
|
||||
- Load a Docker image from `stdin`:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker < {{path/to/image_file.tar}} load`
|
||||
|
||||
- Load a Docker image from a specific file:
|
||||
|
||||
`docker load {{[-i|--input]}} {{path/to/image_file.tar}}`
|
||||
|
||||
- Load a Docker image from a specific file in quiet mode:
|
||||
|
||||
`docker load {{[-q|--quiet]}} {{[-i|--input]}} {{path/to/image_file.tar}}`
|
||||
`tldr docker image load`
|
||||
|
||||
@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker logs
|
||||
|
||||
> Print container logs.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/logs/>.
|
||||
> This command is an alias of `docker container logs`.
|
||||
|
||||
- Print logs from a container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker logs {{container_name}}`
|
||||
|
||||
- Print logs and follow them:
|
||||
|
||||
`docker logs {{[-f|--follow]}} {{container_name}}`
|
||||
|
||||
- Print last 5 lines:
|
||||
|
||||
`docker logs {{container_name}} {{[-n|--tail]}} {{5}}`
|
||||
|
||||
- Print logs and append them with timestamps:
|
||||
|
||||
`docker logs {{[-t|--timestamps]}} {{container_name}}`
|
||||
|
||||
- Print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37):
|
||||
|
||||
`docker logs {{container_name}} --until {{time}}`
|
||||
`tldr docker container logs`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# docker-machine
|
||||
|
||||
> Create and manage machines running Docker.
|
||||
> More information: <https://github.com/docker/machine>.
|
||||
> More information: <https://github.com/docker-archive-public/docker.machine>.
|
||||
|
||||
- List currently running Docker machines:
|
||||
|
||||
|
||||
@@ -5,37 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker ps
|
||||
|
||||
> List Docker containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/ls/>.
|
||||
> This command is an alias of `docker container ls`.
|
||||
|
||||
- List currently running Docker containers:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker ps`
|
||||
|
||||
- List all Docker containers (running and stopped):
|
||||
|
||||
`docker ps {{[-a|--all]}}`
|
||||
|
||||
- Show the latest created container (includes all states):
|
||||
|
||||
`docker ps {{[-l|--latest]}}`
|
||||
|
||||
- Filter containers that contain a substring in their name:
|
||||
|
||||
`docker ps {{[-f|--filter]}} "name={{name}}"`
|
||||
|
||||
- Filter containers that share a given image as an ancestor:
|
||||
|
||||
`docker ps {{[-f|--filter]}} "ancestor={{image}}:{{tag}}"`
|
||||
|
||||
- Filter containers by exit status code:
|
||||
|
||||
`docker ps {{[-a|--all]}} {{[-f|--filter]}} "exited={{code}}"`
|
||||
|
||||
- Filter containers by status (created, running, removing, paused, exited and dead):
|
||||
|
||||
`docker ps {{[-f|--filter]}} "status={{status}}"`
|
||||
|
||||
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
|
||||
|
||||
`docker ps {{[-f|--filter]}} "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`
|
||||
`tldr docker container ls`
|
||||
|
||||
@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker pull
|
||||
|
||||
> Download Docker images from a registry.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/pull/>.
|
||||
> This command is an alias of `docker image pull`.
|
||||
|
||||
- Download a specific Docker image:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker pull {{image}}:{{tag}}`
|
||||
|
||||
- Download a specific Docker image in quiet mode:
|
||||
|
||||
`docker pull {{[-q|--quiet]}} {{image}}:{{tag}}`
|
||||
|
||||
- Download all tags of a specific Docker image:
|
||||
|
||||
`docker pull {{[-a|--all-tags]}} {{image}}`
|
||||
|
||||
- Download a Docker images for a specific platform, e.g. linux/amd64:
|
||||
|
||||
`docker pull --platform {{linux/amd64}} {{image}}:{{tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker pull {{[-h|--help]}}`
|
||||
`tldr docker image pull`
|
||||
|
||||
@@ -5,13 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker rename
|
||||
|
||||
> Rename a container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/rename/>.
|
||||
> This command is an alias of `docker container rename`.
|
||||
|
||||
- Rename a container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker rename {{container}} {{new_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker rename --help`
|
||||
`tldr docker container rename`
|
||||
|
||||
@@ -5,21 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker rm
|
||||
|
||||
> Remove containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/rm/>.
|
||||
> This command is an alias of `docker container rm`.
|
||||
|
||||
- Remove containers:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker rm {{container1 container2 ...}}`
|
||||
|
||||
- Force remove a container:
|
||||
|
||||
`docker rm {{[-f|--force]}} {{container1 container2 ...}}`
|
||||
|
||||
- Remove a container and its volumes:
|
||||
|
||||
`docker rm {{[-v|--volumes]}} {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker rm {{[-h|--help]}}`
|
||||
`tldr docker container rm`
|
||||
|
||||
@@ -5,37 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker run
|
||||
|
||||
> Run a command in a new Docker container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/run/>.
|
||||
> This command is an alias of `docker container run`.
|
||||
|
||||
- Run command in a new container from a tagged image:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker run {{image:tag}} {{command}}`
|
||||
|
||||
- Run command in a new container in background and display its ID:
|
||||
|
||||
`docker run {{[-d|--detach]}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a one-off container in interactive mode and pseudo-TTY:
|
||||
|
||||
`docker run --rm {{[-it|--interactive --tty]}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container with passed environment variables:
|
||||
|
||||
`docker run {{[-e|--env]}} '{{variable}}={{value}}' {{[-e|--env]}} {{variable}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container with bind mounted volumes:
|
||||
|
||||
`docker run {{[-v|--volume]}} /{{path/to/host_path}}:/{{path/to/container_path}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container with published ports:
|
||||
|
||||
`docker run {{[-p|--publish]}} {{host_port}}:{{container_port}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container overwriting the entrypoint of the image:
|
||||
|
||||
`docker run --entrypoint {{command}} {{image}}`
|
||||
|
||||
- Run command in a new container connecting it to a network:
|
||||
|
||||
`docker run --network {{network}} {{image}}`
|
||||
`tldr docker container run`
|
||||
|
||||
@@ -5,21 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker save
|
||||
|
||||
> Export Docker images to archive.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/save/>.
|
||||
> This command is an alias of `docker image save`.
|
||||
|
||||
- Save an image by redirecting `stdout` to a tar archive:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker save {{image}}:{{tag}} > {{path/to/file.tar}}`
|
||||
|
||||
- Save an image to a tar archive:
|
||||
|
||||
`docker save {{[-o|--output]}} {{path/to/file.tar}} {{image}}:{{tag}}`
|
||||
|
||||
- Save all tags of the image:
|
||||
|
||||
`docker save {{[-o|--output]}} {{path/to/file.tar}} {{image_name}}`
|
||||
|
||||
- Cherry-pick particular tags of an image to save:
|
||||
|
||||
`docker save {{[-o|--output]}} {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}`
|
||||
`tldr docker image save`
|
||||
|
||||
@@ -5,21 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker start
|
||||
|
||||
> Start stopped containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/start/>.
|
||||
> This command is an alias of `docker container start`.
|
||||
|
||||
- Start a Docker container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker start {{container}}`
|
||||
|
||||
- Start a container, attaching `stdout` and `stderr`, and forwarding signals:
|
||||
|
||||
`docker start {{[-a|--attach]}} {{container}}`
|
||||
|
||||
- Start one or more containers:
|
||||
|
||||
`docker start {{container1 container2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker start --help`
|
||||
`tldr docker container start`
|
||||
|
||||
@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker stats
|
||||
|
||||
> Display a live stream of resource usage statistics for containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/stats/>.
|
||||
> This command is an alias of `docker container stats`.
|
||||
|
||||
- Display a live stream for the statistics of all running containers:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker stats`
|
||||
|
||||
- Display a live stream of statistics for one or more containers:
|
||||
|
||||
`docker stats {{container1 container2 ...}}`
|
||||
|
||||
- Change the columns format to display container's CPU usage percentage:
|
||||
|
||||
`docker stats --format "{{.Name}}: {{.CPUPerc}}"`
|
||||
|
||||
- Display statistics for all containers (both running and stopped):
|
||||
|
||||
`docker stats {{[-a|--all]}}`
|
||||
|
||||
- Disable streaming stats and only pull the current stats:
|
||||
|
||||
`docker stats --no-stream`
|
||||
`tldr docker container stats`
|
||||
|
||||
@@ -5,17 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker tag
|
||||
|
||||
> Assign tags to existing Docker images.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/tag/>.
|
||||
> This command is an alias of `docker image tag`.
|
||||
|
||||
- Assign a name and tag to a specific image ID:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker tag {{id}} {{name}}:{{tag}}`
|
||||
|
||||
- Assign a tag to a specific image:
|
||||
|
||||
`docker tag {{image}}:{{current_tag}} {{image}}:{{new_tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker tag`
|
||||
`tldr docker image tag`
|
||||
|
||||
@@ -5,13 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker top
|
||||
|
||||
> Display the running processes of a container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/top/>.
|
||||
> This command is an alias of `docker container top`.
|
||||
|
||||
- Display the running processes of a container:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker top {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker top --help`
|
||||
`tldr docker container top`
|
||||
|
||||
@@ -5,30 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker update
|
||||
|
||||
> Update configuration of Docker containers.
|
||||
> This command is not supported for Windows containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/update/>.
|
||||
> This command is an alias of `docker container update`.
|
||||
|
||||
- Update restart policy to apply when a specific container exits:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker update --restart {{always|no|on-failure|unless-stopped}} {{container_name}}`
|
||||
|
||||
- Update the policy to restart up to three times a specific container when it exits with non-zero exit status:
|
||||
|
||||
`docker update --restart on-failure:3 {{container_name}}`
|
||||
|
||||
- Update the number of CPUs available to a specific container:
|
||||
|
||||
`docker update --cpus {{count}} {{container_name}}`
|
||||
|
||||
- Update the memory limit in [M]egabytes for a specific container:
|
||||
|
||||
`docker update {{[-m|--memory]}} {{limit}}M {{container_name}}`
|
||||
|
||||
- Update the maximum number of process IDs allowed inside a specific container (use `-1` for unlimited):
|
||||
|
||||
`docker update --pids-limit {{count}} {{container_name}}`
|
||||
|
||||
- Update the amount of memory in [M]egabytes a specific container can swap to disk (use `-1` for unlimited):
|
||||
|
||||
`docker update --memory-swap {{limit}}M {{container_name}}`
|
||||
`tldr docker container update`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# doctl apps
|
||||
|
||||
> Manage DigitalOcean apps.
|
||||
> More information: <https://docs.digitalocean.com/reference/doctl/reference/apps>.
|
||||
> More information: <https://docs.digitalocean.com/reference/doctl/reference/apps/>.
|
||||
|
||||
- Create an app:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# doctl databases
|
||||
|
||||
> Manage your MySQL, Redis, PostgreSQL, and MongoDB database services.
|
||||
> More information: <https://docs.digitalocean.com/reference/doctl/reference/databases>.
|
||||
> More information: <https://docs.digitalocean.com/reference/doctl/reference/databases/>.
|
||||
|
||||
- Run a `doctl databases` command with an access token:
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user