How does ghost execute the status command?

The command ghost start executes the run method in ghost-cli/lib/commands/start.js file.

Now the output of ghost status is:

┌─────────────┬──────────────────────────┬─────────┬─────────┬─────┬──────┬─────────────────┐
│ Name        │ Location                 │ Version │ Status  │ URL │ Port │ Process Manager │
├─────────────┼──────────────────────────┼─────────┼─────────┼─────┼──────┼─────────────────┤
│ ghost-local │ ~/projects/ghost-hacking │ 3.0.2   │ stopped │ n/a │ n/a  │ n/a             │
└─────────────┴──────────────────────────┴─────────┴─────────┴─────┴──────┴─────────────────┘

There is no status.js file in ghost-cli/lib/commands/ directory.

How is the status command executed?

It’s an alias of lib/commands/ls.js: