Skip to content
Felipe Inoue edited this page Nov 24, 2026 · 8 revisions

βž• create

Create a command, a file, a folder, or a script.

crower create [name] [exec] [flags]

🚩 Flags

Flag Effect
-a, --alias Aliases, comma-separated (--alias 'a1,a2')
--icon A short marker β€” an emoji β€” shown beside the command in the window
--group The group the command belongs to
--description What the command is for
--params Positional parameters, comma-separated or repeated (--params 'env,region')
--cwd Working directory the command runs in
--shell Shell that runs the command (sh, pwsh, cmd)
--timeout Longest the command may run, as a Go duration (120s)
--here Run in your own shell through the shell hook, so cd, export and source stay in effect; not with --cwd, --shell, --timeout, env or steps
-f, --file Treat the arguments as file paths
-o, --folder Treat the arguments as folder paths
--execute Create from the last executed command
-p, --process New command name; pass the process name or pid as an argument
--script Create a helper script for a complex command
--syspath Create a PATH entry
--system Create a system variable

πŸ’‘ Examples

# Interactive: asks for name, command and aliases
crower create

# Name + command
crower create deploy "ssh user@server 'cd /app && git pull'"

# With aliases
crower create backup -a bkp,bk "tar -czf ~/b.tgz ~/data"

# With an icon and a group, shown in the window's command list
crower create deploy --icon πŸš€ --group ship "make deploy"

# Runs in your shell (with the hook loaded): the venv stays active afterwards
crower create venv "source .venv/bin/activate" --here

# Files and folders
crower create --file notes.md todo.txt
crower create --folder tmp logs

# Re-create the command you last executed under a new name
# (one name; --alias and the other create flags still apply)
crower create --execute greet2 -a g2

# Create a shortcut for a running process:
# -p is the new command name, the process comes last
crower create -p editor code -a ed

Tip

Quote the command as one argument. crower create greet "echo hi" stores echo hi; without quotes it sees three words.

Note

create --execute cannot rebuild a command that uses Steps: that command never runs its --exec, and a list of steps is not one command line. It fails with an error instead of creating something different.

Note

Description, Params, Shell, Cwd, Env and Timeout are part of the command schema, but create has no flags for them yet: set them in the configuration file or import a pack. See execute.

πŸ”— Related

update Β· execute Β· delete Β· πŸ“– Commands

Clone this wiki locally