\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Chris (chubbard)} \pdfinfo{ /Title (cloud-foundry-commands-list-v7-7-10.pdf) /Creator (Cheatography) /Author (Chris (chubbard)) /Subject (Cloud Foundry Commands List V7.7.10 Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{2EA321} \definecolor{LightBackground}{HTML}{F1F9F1} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Cloud Foundry Commands List V7.7.10 Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Chris (chubbard)} via \textcolor{DarkBackground}{\uline{cheatography.com/36946/cs/43582/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Chris (chubbard) \\ \uline{cheatography.com/chubbard} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 5th June, 2024.\\ Updated 5th June, 2024.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{APPLICATIONS}} \tn % Row 0 \SetRowColor{LightBackground} apps & List all apps in the target space \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} app & Display health and status for an app \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} create-app & Create an Application in the target space \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} push & Push a new app or sync changes to an existing app \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} scale & Change or view the instance count, disk space limit, and memory limit for an app \tn % Row Count 12 (+ 4) % Row 5 \SetRowColor{white} delete & Delete an app \tn % Row Count 13 (+ 1) % Row 6 \SetRowColor{LightBackground} rename & Rename an app \tn % Row Count 14 (+ 1) % Row 7 \SetRowColor{white} \seqsplit{cancel-deployment} & Cancel the most recent deployment for an app. Resets the current droplet to the previous deployment's droplet. \tn % Row Count 19 (+ 5) % Row 8 \SetRowColor{LightBackground} start & Start an app \tn % Row Count 20 (+ 1) % Row 9 \SetRowColor{white} stop & Stop an app \tn % Row Count 21 (+ 1) % Row 10 \SetRowColor{LightBackground} restart & Stop all instances of the app, then start them again. \tn % Row Count 24 (+ 3) % Row 11 \SetRowColor{white} \seqsplit{stage-package} & Stage a package into a droplet \tn % Row Count 26 (+ 2) % Row 12 \SetRowColor{LightBackground} restage & Stage the app's latest package into a droplet and restart the app with this new droplet and updated configuration (environment variables, service bindings, buildpack, stack, etc.). \tn % Row Count 33 (+ 7) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{APPLICATIONS (cont)}} \tn % Row 13 \SetRowColor{LightBackground} \seqsplit{restart-app-instance} & Terminate, then instantiate an app instance \tn % Row Count 2 (+ 2) % Row 14 \SetRowColor{white} run task & Run a one-off task on an app \tn % Row Count 4 (+ 2) % Row 15 \SetRowColor{LightBackground} tasks & List tasks of an app \tn % Row Count 5 (+ 1) % Row 16 \SetRowColor{white} \seqsplit{terminate-task} & Terminate a running task of an app \tn % Row Count 7 (+ 2) % Row 17 \SetRowColor{LightBackground} packages & List packages of an app \tn % Row Count 8 (+ 1) % Row 18 \SetRowColor{white} \seqsplit{create-package} & Uploads a Package \tn % Row Count 10 (+ 2) % Row 19 \SetRowColor{LightBackground} droplets & List droplets of an app \tn % Row Count 11 (+ 1) % Row 20 \SetRowColor{white} set-droplet & Set the droplet used to run an app \tn % Row Count 13 (+ 2) % Row 21 \SetRowColor{LightBackground} \seqsplit{download-droplet} & Download an application droplet \tn % Row Count 15 (+ 2) % Row 22 \SetRowColor{white} events & Show recent app events \tn % Row Count 16 (+ 1) % Row 23 \SetRowColor{LightBackground} logs & Tail or show recent logs for an app \tn % Row Count 18 (+ 2) % Row 24 \SetRowColor{white} env & Show all env variables for an app \tn % Row Count 20 (+ 2) % Row 25 \SetRowColor{LightBackground} set-env & Set an env variable for an app \tn % Row Count 22 (+ 2) % Row 26 \SetRowColor{white} unset-env & Remove an env variable from an app \tn % Row Count 24 (+ 2) % Row 27 \SetRowColor{LightBackground} stacks & List all stacks (a stack is a pre-built file system, including an operating system, that can run apps) \tn % Row Count 28 (+ 4) % Row 28 \SetRowColor{white} stack & Show information for a stack (a stack is a pre-built file system, including an operating system, that can run apps) \tn % Row Count 33 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{APPLICATIONS (cont)}} \tn % Row 29 \SetRowColor{LightBackground} copy-source & Copies the source code of an application to another existing application and restages that application \tn % Row Count 4 (+ 4) % Row 30 \SetRowColor{white} \seqsplit{create-app-manifest} & Create an app manifest for an app that has been pushed successfully \tn % Row Count 7 (+ 3) % Row 31 \SetRowColor{LightBackground} \seqsplit{get-health-check} & Show the type of health check performed on an app \tn % Row Count 9 (+ 2) % Row 32 \SetRowColor{white} \seqsplit{set-health-check} & Change type of health check performed on an app's process \tn % Row Count 12 (+ 3) % Row 33 \SetRowColor{LightBackground} enable-ssh & Enable ssh for the application \tn % Row Count 14 (+ 2) % Row 34 \SetRowColor{white} disable-ssh & Disable ssh for the application \tn % Row Count 16 (+ 2) % Row 35 \SetRowColor{LightBackground} ssh-enabled & Reports whether SSH is enabled on an application container instance \tn % Row Count 19 (+ 3) % Row 36 \SetRowColor{white} ssh & SSH to an application container instance \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SERVICES}} \tn % Row 0 \SetRowColor{LightBackground} marketplace & List available offerings in the marketplace \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} services & List all service instances in the target space \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} service & Show service instance info \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} create-service & Create a service instance \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} update-service & Update a service instance \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} delete-service & Delete a service instance \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} rename-service & Rename a service instance \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{create-service-key} & Create key for a service instance \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} service-keys & List keys for a service instance \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} service-key & Show service key info \tn % Row Count 19 (+ 1) % Row 10 \SetRowColor{LightBackground} \seqsplit{delete-service-key} & Delete a service key \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} bind-service & Bind a service instance to an app \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} unbind-service & Unbind a service instance from an app \tn % Row Count 25 (+ 2) % Row 13 \SetRowColor{white} \seqsplit{bind-route-service} & Bind a service instance to an HTTP route \tn % Row Count 27 (+ 2) % Row 14 \SetRowColor{LightBackground} \seqsplit{unbind-route-service} & Unbind a service instance from an HTTP route \tn % Row Count 29 (+ 2) % Row 15 \SetRowColor{white} \seqsplit{create-user-provided-service} & Make a user-provided service instance available to CF apps \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SERVICES (cont)}} \tn % Row 16 \SetRowColor{LightBackground} \seqsplit{update-user-provided-service} & Update user-provided service instance \tn % Row Count 2 (+ 2) % Row 17 \SetRowColor{white} share-service & Share a service instance with another space \tn % Row Count 4 (+ 2) % Row 18 \SetRowColor{LightBackground} unshare-service & Unshare a shared service instance from a space \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.74195 cm} x{3.23505 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SERVICE ADMIN}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{service-brokers} & List all service brokers in the org \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{create-service-broker} & create a new service broker \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{update-service-broker} & update an existing service broker \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{delete-service-broker} & delete an existing service broker \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{rename-service-broker} & rename an existing service broker \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{purge-service-offering} & Recursively remove a service offering and child objects from Cloud Foundry database without making requests to a service broker \tn % Row Count 15 (+ 5) % Row 6 \SetRowColor{LightBackground} \seqsplit{purge-service-instance} & Recursively remove a service instance and child objects from Cloud Foundry database without making requests to a service broker \tn % Row Count 20 (+ 5) % Row 7 \SetRowColor{white} \seqsplit{service-access} & List the service access settings \tn % Row Count 22 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{enable-service-access} & Enable access to a service offering or service plan for one or all orgs \tn % Row Count 25 (+ 3) % Row 9 \SetRowColor{white} \seqsplit{disable-service-access} & Disable access to a service offering or service plan for one or all orgs \tn % Row Count 28 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{ORGS}} \tn % Row 0 \SetRowColor{LightBackground} orgs & List all orgs \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} org & show specific org information \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{create-org} & Create a new org \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{delete-org} & Delete a specific org \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \seqsplit{rename-org} & Rename a specific org \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.59264 cm} x{3.38436 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SPACES}} \tn % Row 0 \SetRowColor{LightBackground} spaces & List all the spaces in an ORG \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} space & Show specific space information \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{create-space} & Create a new space \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{delete-space} & Delete a specific space \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} \seqsplit{rename-space} & Rename a specific space \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{apply-manifest} & Apply properties to a space \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{allow-space-ssh} & allow ssh access into a space \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{disallow-space-ssh} & disable ssh access into a space \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{space-ssh-allowed} & returns if ssh is allowed in the space \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.74195 cm} x{3.23505 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{ROUTES}} \tn % Row 0 \SetRowColor{LightBackground} routes & LIst all routes in teh current space or org \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} create-route & Create a route for later use \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} check-route & Check if a route exists or not \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} map-route & Map a route to an application \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} unmap-route & Remove a route from an application \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} delete-route & Delete the entire route \tn % Row Count 11 (+ 1) % Row 6 \SetRowColor{LightBackground} \seqsplit{delete-orphaned-routes} & Delete routes that are not mapped (go nowhere) \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{DOMAINS}} \tn % Row 0 \SetRowColor{LightBackground} domains & List all domains in the org \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{create-private-domain} & Create a private domain within the org \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{delete-private-domain} & Delete a private domain within the org \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{create-shared-domain} & Create a domain that can be used by all (admin-only) \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{delete-shared-domain} & Delete a shared domain \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{router-groups} & List the router groups in an org \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{ADVANCED USE}} \tn % Row 0 \SetRowColor{LightBackground} curl & Calls the targeted API endpoint \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} config & Write default values to the config \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{oauth-token} & Display the OAuth token for the current session and refresh the token if necessary \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} \seqsplit{ssh-code} & Get a one time password for ssh clients \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}