Skip to content

Conversation

savil
Copy link
Collaborator

@savil savil commented Apr 12, 2023

Summary

This provides a "single view" listing of all available commands.
Sometimes I find myself wanting a global view to quickly find something.

credit to chatgpt for writing some of this.

Its a hidden command, since the printed view is not polished.

How was it tested?

❯ devbox all
devbox              Instant, easy, predictable development environments
	add <pkg>...        Add a new package to your devbox
	all                 List all commands, including hidden ones
	cloud               [Preview] Remote development environments on the cloud
		forward <local-port>:<remote-port> | :<remote-port> | stop | list[Preview] Port forward a local port to a remote devbox cloud port
			list                List all port forwards managed by devbox
			stop                Stop all port forwards managed by devbox
		init                Create a Cloud VM without connecting to its shell
		shell               [Preview] Shell into a cloud environment that matches your local devbox environment
	completion          Generate the autocompletion script for the specified shell
		bash                Generate the autocompletion script for bash
		fish                Generate the autocompletion script for fish
		powershell          Generate the autocompletion script for powershell
		zsh                 Generate the autocompletion script for zsh
	gen-docs <path>     [Internal] Generate documentation for the CLI
	generate            Generate supporting files for your project
		debug
		devcontainer        Generate Dockerfile and devcontainer.json files under .devcontainer/ directory
		direnv              Generate a .envrc file that integrates direnv with this devbox project
		dockerfile          Generate a Dockerfile that replicates devbox shell
		ssh-config          Generate ssh config to connect to devbox cloud
	global              Manage global devbox packages
		add <pkg>...        Add a new global package
		list                List global packages
		pull <file> | <url> Pull a global config from a file or URL
		rm <pkg>...         Remove a global package
		shellenv            Print shell commands that add global Devbox packages to your PATH
	help [command]      Help about any command
	info <pkg>          Display package info
	init [<dir>]        Initialize a directory as a devbox project
	install             Install all packages mentioned in devbox.json
	log <event-name> [<event-specific-args>]
	plan                Preview the plan used to build your environment
	rm <pkg>...         Remove a package from your devbox
	run [<script> | <cmd>]Run a script or command in a shell with access to your packages
	services            Interact with devbox services
		ls                  List available services
		restart [service]...Restart service. If no service is specified, restarts all services
		start [service]...  Start service. If no service is specified, starts all services
		stop [service]...   Stop service. If no service is specified, stops all services
		up                  Starts process manager with all supported services
	setup               Setup devbox dependencies
		nix                 Install Nix
	shell               Start a new shell with access to your packages
	shellenv            Print shell commands that add Devbox packages to your PATH
	version             Print version information
		update              Update devbox launcher and binary

Copy link
Collaborator Author

savil commented Apr 12, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil requested a review from LucilleH April 12, 2023 21:25
@savil savil merged commit 677ce02 into main Apr 14, 2023
@savil savil deleted the savil/all-command branch April 14, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants